blob: 8bad8e2107431091c2ad3a490fc426d6d1e6e505 [file] [log] [blame]
/*
* qser_audio.h
*
* QSER audio header file.
*
* Author : lb
* Date : 2023/11/23 10:52:01
*/
#ifndef _QSER_AUDIO_H
#define _QSER_AUDIO_H
#include "mbtk_type.h"
typedef void (*_cb_onPlayer)(int);
int qser_AudPlayer_Open(char* device, _cb_onPlayer cb_fun);
int qser_AudPlayer_PlayFrmFile(int hdl, const char *fd, int offset);
int qser_AudPlayer_Pause(int hdl);
int qser_AudPlayer_Resume(int hdl);
void qser_AudPlayer_Stop(int hdl);
void qser_AudPlayer_Close(int hdl);
int qser_AudRecorder_Open(char* device, _cb_onPlayer cb_fun);
int qser_AudRecorder_StartRecord(int hdl, const char *fd, int offset);
int qser_AudRecorder_Pause(void);
int qser_AudRecorder_Resume(void);
void qser_AudRecorder_Stop(void);
void qser_AudRecorder_Close(void);
void qser_Audio_Deinit(void);
#endif /* _QSER_AUDIO_H */