標(biāo)題: STM32F407 FLAC軟解壓 源程序 [打印本頁]

作者: ktcl7777    時間: 2020-6-23 20:37
標(biāo)題: STM32F407 FLAC軟解壓 源程序
基于FLAC v1.0官方原生代碼 因此在文件頭分析的時候 自適應(yīng)各種頭 效率比正點(diǎn)原子的高

內(nèi)存要求比較高 沒有在f103測試

輕松解壓 -8級別的flac

單片機(jī)源程序如下:
  1. #include "sys.h"
  2. #include "string.h"
  3. #include "math.h"
  4. #include "malloc.h"
  5. #include "ff.h"
  6. #include "exfuns.h"
  7. #include "text.h"
  8. #include "delay.h"

  9. #include "sdio_sdcard.h"
  10. #include "vs10xx.h"

  11. int main( void )
  12. {

  13.         NVIC_PriorityGroupConfig( NVIC_PriorityGroup_1 );
  14.         delay_init( 168 );

  15.         SD_Init();

  16.         my_mem_init( SRAMIN );
  17.         my_mem_init( SRAMCCM );
  18.         exfuns_init();       
  19.         f_mount( fs[0],"0:",1 );


  20.         VS_Init();

  21.         play_flac("0:/test.flac");

  22.         while( 1 )
  23.         {
  24.                 delay_ms(100);
  25.         }
  26. }
復(fù)制代碼

所有資料51hei提供下載:
flaclib_example.7z (358.13 KB, 下載次數(shù): 16)






作者: ktcl7777    時間: 2020-7-1 23:06
stm32f103rc 測試 需要超頻(到11*8 ) 才能解壓 0 1 2級別的flac




歡迎光臨 (http://www.torrancerestoration.com/bbs/) Powered by Discuz! X3.1