Files | |
file | audio_synthesizer_api.h |
CXD5602 Audio Synthesizer API. | |
Classes | |
struct | AsActivateSynthesizer |
union | AsSynthesizerDataDest |
struct | AsInitSynthesizerParam |
struct | AsSetSynthesizer |
struct | AsSynthesizerMsgQueId_t |
struct | AsSynthesizerPoolId_t |
struct | AsCreateSynthesizerParam_t |
Typedefs | |
typedef bool(* | SynthesizerCallback) (AsSynthesizerEvent evtype, uint32_t result, void *param) |
typedef void(* | SynthesizerDoneCallback) (AsPcmDataParam param) |
Enumerations | |
enum | AsSynthesizerEvent { AsSynthesizerEventAct = 0 , AsSynthesizerEventInit , AsSynthesizerEventStart , AsSynthesizerEventStop , AsSynthesizerEventDeact , AsSynthesizerEventSet , AsSynthesizerEventNum } |
enum | AsSynthesizerWaveMode { InvalidWave = 0xffffffff , AsSynthesizerSinWave = 0 , AsSynthesizerRectWave , AsSynthesizerSawWave , AsSynthesizerWaveModeNum } |
enum | AsSynthesizerChannelNum { AsSynthesizerMaxChannelNum = 8 } |
enum | AsSynthesizerDataPath { AsSynthesizerDataPathCallback = 0 , AsSynthesizerDataPathMessage } |
Functions | |
bool | AS_CreateMediaSynthesizer (FAR AsCreateSynthesizerParam_t *param, AudioAttentionCb attcb) |
Create audio synthesizer. More... | |
__attribute__ ((deprecated("\n \ \n Deprecated create API is used. \ \n Use \"AS_CreateMediaSynthesizer(AsCreateSynthesizerParam_t, \ \n AudioAttentionCb)\". \ \n \ \n"))) bool AS_CreateMediaSynthesizer(FAR AsCreateSynthesizerParam_t *param) | |
bool | AS_ActivateMediaSynthesizer (FAR AsActivateSynthesizer *actparam) |
Activate audio synthesizer. More... | |
bool | AS_InitMediaSynthesizer (FAR AsInitSynthesizerParam *initparam) |
Init audio synthesizer. More... | |
bool | AS_StartMediaSynthesizer (void) |
Start audio synthesizer. More... | |
bool | AS_StopMediaSynthesizer (void) |
Stop audio synthesizer. More... | |
bool | AS_SetFrequencyMediaSynthesizer (FAR AsSetSynthesizer *set_param) |
Set audio synthesizer at frequency. More... | |
bool | AS_SetEnvelopeMediaSynthesizer (FAR AsSetSynthesizer *set_param) |
Set audio synthesizer at envelope. More... | |
bool | AS_SetMediaSynthesizer (FAR AsSetSynthesizer *set_param) |
Deactivate audio synthesizer. More... | |
bool | AS_DeactivateMediaSynthesizer (void) |
Deactivate audio synthesizer. More... | |
bool | AS_DeleteMediaSynthesizer (void) |
Deactivate audio synthesizer. More... | |
bool | AS_ReleaseMediaSynthesizer (bool is_end) |
Deactivate audio synthesizer. More... | |
typedef bool(* SynthesizerCallback) (AsSynthesizerEvent evtype, uint32_t result, void *param) |
SetSynthesizerStatus Command (#AUDCMD_SETSYNTHESIZERSTATUS) parameter
typedef void(* SynthesizerDoneCallback) (AsPcmDataParam param) |
InitSynthesizer Command (#AUDCMD_INITSYN) parameter
enum AsSynthesizerEvent |
bool AS_CreateMediaSynthesizer | ( | FAR AsCreateSynthesizerParam_t * | param, |
AudioAttentionCb | attcb | ||
) |
Create audio synthesizer.
[in] | param | Parameters of resources used by audio synthesizer |
[in] | attcb | Attention callback of Synthesizer. NULL means no callback. |
true | : success |
false | : failure |
bool AS_ActivateMediaSynthesizer | ( | FAR AsActivateSynthesizer * | actparam | ) |
Activate audio synthesizer.
[in] | param | Activation parameters |
true | : success |
false | : failure |
bool AS_InitMediaSynthesizer | ( | FAR AsInitSynthesizerParam * | initparam | ) |
Init audio synthesizer.
[in] | param | Initialization parameters |
true | : success |
false | : failure |
bool AS_StartMediaSynthesizer | ( | void | ) |
Start audio synthesizer.
true | : success |
false | : failure |
bool AS_StopMediaSynthesizer | ( | void | ) |
Stop audio synthesizer.
true | : success |
false | : failure |
bool AS_SetFrequencyMediaSynthesizer | ( | FAR AsSetSynthesizer * | set_param | ) |
Set audio synthesizer at frequency.
true | : success |
false | : failure |
bool AS_SetEnvelopeMediaSynthesizer | ( | FAR AsSetSynthesizer * | set_param | ) |
Set audio synthesizer at envelope.
true | : success |
false | : failure |
bool AS_SetMediaSynthesizer | ( | FAR AsSetSynthesizer * | set_param | ) |
Deactivate audio synthesizer.
true | : success |
false | : failure |
bool AS_DeactivateMediaSynthesizer | ( | void | ) |
Deactivate audio synthesizer.
true | : success |
false | : failure |
bool AS_DeleteMediaSynthesizer | ( | void | ) |
Deactivate audio synthesizer.
true | : success |
false | : failure |
bool AS_ReleaseMediaSynthesizer | ( | bool | is_end | ) |
Deactivate audio synthesizer.
[in] | is_end | : All PCM data can be discarded |
true | : success |
false | : failure |