Megaphone_AudioFile.h
2.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
/**
********************************************************************
* @file Megaphone_AudioFile.h
* Megaphone_AudioFile.c的头文件
*
*********************************************************************
*/
/* Define to prevent recursive inclusion 避免重定义 -------------------------------------*/
#ifndef MEGAPHONE_AUDIOFILE_H
#define MEGAPHONE_AUDIOFILE_H
/* Includes ------------------------------------------------------------------*/
#include "JZsdk_Base/JZsdk_Code/JZsdk_Code.h"
#include "./AudioFile_Param.h"
#ifdef __cplusplus
extern "C" {
#endif
/* Exported constants --------------------------------------------------------*/
/* 常亮定义*/
/* Exported types ------------------------------------------------------------*/
/* Exported functions --------------------------------------------------------*/
T_JZsdkReturnCode Megaphone_AudioFile_Init();
T_JZsdkReturnCode Megaphone_AudioFile_Play(unsigned char *str, unsigned int str_len);
T_JZsdkReturnCode Megaphone_GetLastSongName(unsigned char *name, int *name_len);
T_JZsdkReturnCode Megaphone_GetNextSongName(unsigned char *name, int *name_len);
T_JZsdkReturnCode AudioMange_Get_FilePlayName(unsigned char *music_name,unsigned int *music_name_length,unsigned int *MusicNum);
T_JZsdkReturnCode AudioFile_SaveAudioFileStart(char *FileName);
T_JZsdkReturnCode AudioFile_SaveAudioFileTrans(char *SaveData, int size);
T_JZsdkReturnCode AudioFile_SaveAudioFileStop(int checkFlag, unsigned char *CheckCode);
T_JZsdkReturnCode AudioFile_FlushAudioList();
T_JZsdkReturnCode AudioMange_Get_FileNum(unsigned int *num);
T_JZsdkReturnCode Megaphone_AudioFile_GetAudioNameByIndex(int index, unsigned char *name, int *name_len);
T_JZsdkReturnCode Megaphone_RecordFile_Play(unsigned char *str, unsigned int str_len);
T_JZsdkReturnCode AudioFile_CheckFile_WhetherInList(unsigned char *str, unsigned int str_len);
T_JZsdkReturnCode AudioFile_GetAudioInfo(unsigned char *str, unsigned int str_len, struct AudioMange_audio_struct *songToFind);
#ifdef __cplusplus
}
#endif
#endif