Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
26
sdk/app/audio_media_ctrl/mp3/mp3_decode.h
Normal file
26
sdk/app/audio_media_ctrl/mp3/mp3_decode.h
Normal file
@@ -0,0 +1,26 @@
|
||||
#ifndef _MP3_DECODE_MSI_H_
|
||||
#define _MP3_DECODE_MSI_H_
|
||||
|
||||
#include "basic_include.h"
|
||||
#include "lib/heap/av_heap.h"
|
||||
#include "lib/heap/av_psram_heap.h"
|
||||
#include "audio_code_ctrl.h"
|
||||
|
||||
#ifdef PSRAM_HEAP
|
||||
#define MP3_DECODE_MALLOC av_psram_malloc
|
||||
#define MP3_DECODE_ZALLOC av_psram_zalloc
|
||||
#define MP3_DECODE_CALLOC av_psram_calloc
|
||||
#define MP3_DECODE_FREE av_psram_free
|
||||
#else
|
||||
#define MP3_DECODE_MALLOC av_malloc
|
||||
#define MP3_DECODE_ZALLOC av_zalloc
|
||||
#define MP3_DECODE_CALLOC av_calloc
|
||||
#define MP3_DECODE_FREE av_free
|
||||
#endif
|
||||
|
||||
#define MP3_DEBUG(fmt, args...) //os_printf(fmt, ##args)
|
||||
#define MP3_INFO os_printf
|
||||
|
||||
struct msi *mp3_decode_init(char *filename, uint8_t loop_mode, AUDEC_INIT *audec_init);
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user