Initial commit: TXW82x FPV v2.7.0.7-42229 SDK + project sources
This commit is contained in:
33
sdk/app/audio_media_ctrl/prompt_tone.h
Normal file
33
sdk/app/audio_media_ctrl/prompt_tone.h
Normal file
@@ -0,0 +1,33 @@
|
||||
#ifndef _PROMPT_TONE_H_
|
||||
#define _PROMPT_TONE_H_
|
||||
|
||||
#include "basic_include.h"
|
||||
#include "lib/heap/av_heap.h"
|
||||
#include "lib/heap/av_psram_heap.h"
|
||||
#include "lib/multimedia/msi.h"
|
||||
#include "lib/multimedia/framebuff.h"
|
||||
|
||||
#ifdef PSRAM_HEAP
|
||||
#define PROMPTTONE_MALLOC av_psram_malloc
|
||||
#define PROMPTTONE_ZALLOC av_psram_zalloc
|
||||
#define PROMPTTONE_FREE av_psram_free
|
||||
#else
|
||||
#define PROMPTTONE_MALLOC av_malloc
|
||||
#define PROMPTTONE_ZALLOC av_zalloc
|
||||
#define PROMPTTONE_FREE av_free
|
||||
#endif
|
||||
|
||||
typedef struct {
|
||||
const uint8_t *tone_buf;
|
||||
void *task_hdl;
|
||||
uint32_t tone_buf_size;
|
||||
uint32_t tone_buf_offset;
|
||||
struct fbpool tx_pool;
|
||||
struct msi *msi;
|
||||
struct msi *mp3_msi;
|
||||
} PROMPT_TONE_STRUCT;
|
||||
|
||||
extern const uint8_t connect_mp3[];
|
||||
extern const uint8_t disconnect_mp3[];
|
||||
|
||||
#endif
|
||||
Reference in New Issue
Block a user