Files | |
file | audio_recorder_api.h |
CXD5602 Audio Recorder API. | |
Classes | |
struct | AsRecorderOutputDeviceHdlr |
struct | AsActivateRecorderParam |
struct | AsActivateRecorder |
struct | AsInitRecorderParam |
union | RecorderCommand |
struct | AsRecorderMsgQueId_t |
struct | AsRecorderPoolId_t |
struct | AsRecorderPoolId_old_t |
struct | AsCreateRecorderParam_t |
struct | AsCreateRecorderParams_t |
Typedefs | |
typedef void(* | AudioSimpleFifoWriteDoneCallbackFunction) (uint32_t size) |
typedef bool(* | MediaRecorderCallback) (AsRecorderEvent evtype, uint32_t result, uint32_t sub_result) |
Functions | |
bool | AS_CreateMediaRecorder (FAR AsCreateRecorderParam_t *param, AudioAttentionCb attcb) |
Create audio recorder. More... | |
bool | AS_CreateMediaRecorder (FAR AsCreateRecorderParams_t *param, AudioAttentionCb attcb) |
__attribute__ ((deprecated("\n \ \n Deprecated create API is used. \ \n Use \"AS_CreateMediaRecorder(AsCreateRecorderParam_t, \ \n AudioAttentionCb)\". \ \n \ \n"))) bool AS_CreateMediaRecorder(FAR AsCreateRecorderParam_t *param) | |
bool | AS_ActivateMediaRecorder (FAR AsActivateRecorder *actparam) |
Activate audio recorder. More... | |
bool | AS_InitMediaRecorder (FAR AsInitRecorderParam *initparam) |
Init audio recorder. More... | |
bool | AS_ReqEncodeMediaRecorder (AsPcmDataParam *pcmparam) |
Request encode to audio recorder. More... | |
bool | AS_StartMediaRecorder (void) |
Start audio recorder. More... | |
bool | AS_StopMediaRecorder (void) |
Stop audio recorder. More... | |
bool | AS_DeactivateMediaRecorder (void) |
Deactivate audio recorder. More... | |
bool | AS_DeleteMediaRecorder (void) |
Deactivate audio recorder. More... | |
bool | AS_checkAvailabilityMediaRecorder (void) |
Check availability of MediaRecorder. More... | |
Packet length of command | |
#define | LENGTH_START_RECORDER 2 |
StartRec command (AUDCMD_STARTREC) packet length. | |
#define | LENGTH_STOP_RECORDER 2 |
StopRec command (AUDCMD_STOPREC) packet length. | |
#define | LENGTH_INIT_RECORDER 10 |
InitRecorder command (AUDCMD_INITREC) packet length. | |
typedef void(* AudioSimpleFifoWriteDoneCallbackFunction) (uint32_t size) |
SimpliFifo Callback function
[in] | size | : Set write size after writing data to SimpleFifo |
enum AsRecorderEvent |
Select Recorder output device
Enumerator | |
---|---|
AS_SETRECDR_STS_OUTPUTDEVICE_EMMC | eMMC FileSystem
|
AS_SETRECDR_STS_OUTPUTDEVICE_RAM | RAM. |
Select InitRecorder computational complexity(Opus Only)
bool AS_CreateMediaRecorder | ( | FAR AsCreateRecorderParam_t * | param, |
AudioAttentionCb | attcb | ||
) |
Create audio recorder.
[in] | param | Parameters of resources used by audio recorder |
[in] | attcb | Attention callback of Recorder. NULL means no callback. |
true | : success |
false | : failure |
bool AS_ActivateMediaRecorder | ( | FAR AsActivateRecorder * | actparam | ) |
Activate audio recorder.
[in] | actparam | Activation parameters |
true | : success |
false | : failure |
bool AS_InitMediaRecorder | ( | FAR AsInitRecorderParam * | initparam | ) |
Init audio recorder.
[in] | initparam | Initialization parameters |
true | : success |
false | : failure |
bool AS_ReqEncodeMediaRecorder | ( | AsPcmDataParam * | pcmparam | ) |
Request encode to audio recorder.
[in] | pcmparam | Information of target PCM data |
true | : success |
false | : failure |
bool AS_StartMediaRecorder | ( | void | ) |
Start audio recorder.
true | : success |
false | : failure |
bool AS_StopMediaRecorder | ( | void | ) |
Stop audio recorder.
true | : success |
false | : failure |
bool AS_DeactivateMediaRecorder | ( | void | ) |
Deactivate audio recorder.
true | : success |
false | : failure |
bool AS_DeleteMediaRecorder | ( | void | ) |
Deactivate audio recorder.
true | : success |
false | : failure |
bool AS_checkAvailabilityMediaRecorder | ( | void | ) |
Check availability of MediaRecorder.
true | : avaliable |
false | : Not available |