36#ifndef __MODULES_INCLUDE_AUDIO_SYNTHESIZER_API_H
37#define __MODULES_INCLUDE_AUDIO_SYNTHESIZER_API_H
67#define AS_FEATURE_SYNTHESIZER_ENABLE
74#define LENGTH_INIT_SYNTHESIZER 10
78#define LENGTH_START_SYNTHESIZER 2
82#define LENGTH_STOP_SYNTHESIZER 2
119 AsSynthesizerEventNum
127 InvalidWave = 0xffffffff,
132 AsSynthesizerRectWave,
133 AsSynthesizerSawWave,
135 AsSynthesizerWaveModeNum
353 \n Deprecated create API is used. \
354 \n Use \"AS_CreateMediaSynthesizer(AsCreateSynthesizerParam_t, \
355 \n AudioAttentionCb)\". \
CXD5602 Audio Common Definitions.
CXD5602 Audio Object Layer API.
__attribute__((deprecated("\nDeprecated attention callback type is used. \
\nPlease use \"AudioAttentionCb\" as callback type. \
\n"))) int AS_CreateAudioManager(AudioSubSystemIDs ids
Activate AudioSubSystem[Deprecated] This API is to make it compatible with old application....
void(* AudioAttentionCb)(const ErrorAttentionParam *attparam)
Definition: audio_common_defs.h:810
#define AS_AUDIO_DSP_PATH_LEN
Definition: audio_common_defs.h:693
bool AS_ReleaseMediaSynthesizer(bool is_end)
Deactivate audio synthesizer.
AsSynthesizerDataPath
Definition: audio_synthesizer_api.h:152
bool AS_DeleteMediaSynthesizer(void)
Deactivate audio synthesizer.
bool AS_SetMediaSynthesizer(FAR AsSetSynthesizer *set_param)
Deactivate audio synthesizer.
bool AS_StartMediaSynthesizer(void)
Start audio synthesizer.
AsSynthesizerEvent
Definition: audio_synthesizer_api.h:94
AsSynthesizerWaveMode
Definition: audio_synthesizer_api.h:126
bool AS_SetFrequencyMediaSynthesizer(FAR AsSetSynthesizer *set_param)
Set audio synthesizer at frequency.
bool AS_CreateMediaSynthesizer(FAR AsCreateSynthesizerParam_t *param, AudioAttentionCb attcb)
Create audio synthesizer.
AsSynthesizerChannelNum
Definition: audio_synthesizer_api.h:142
bool AS_StopMediaSynthesizer(void)
Stop audio synthesizer.
bool AS_ActivateMediaSynthesizer(FAR AsActivateSynthesizer *actparam)
Activate audio synthesizer.
bool(* SynthesizerCallback)(AsSynthesizerEvent evtype, uint32_t result, void *param)
Definition: audio_synthesizer_api.h:169
bool AS_SetEnvelopeMediaSynthesizer(FAR AsSetSynthesizer *set_param)
Set audio synthesizer at envelope.
bool AS_DeactivateMediaSynthesizer(void)
Deactivate audio synthesizer.
bool AS_InitMediaSynthesizer(FAR AsInitSynthesizerParam *initparam)
Init audio synthesizer.
void(* SynthesizerDoneCallback)(AsPcmDataParam param)
Definition: audio_synthesizer_api.h:185
@ AsSynthesizerDataPathCallback
PCM data is send by callback.
Definition: audio_synthesizer_api.h:155
@ AsSynthesizerDataPathMessage
PCM data is send by message.
Definition: audio_synthesizer_api.h:159
@ AsSynthesizerEventInit
Init.
Definition: audio_synthesizer_api.h:101
@ AsSynthesizerEventSet
Set.
Definition: audio_synthesizer_api.h:117
@ AsSynthesizerEventStart
Start.
Definition: audio_synthesizer_api.h:105
@ AsSynthesizerEventDeact
Deactivate.
Definition: audio_synthesizer_api.h:113
@ AsSynthesizerEventStop
Stop.
Definition: audio_synthesizer_api.h:109
@ AsSynthesizerEventAct
Activate.
Definition: audio_synthesizer_api.h:97
@ AsSynthesizerSinWave
Waveform.
Definition: audio_synthesizer_api.h:131
@ AsSynthesizerMaxChannelNum
Maximum number of channels.
Definition: audio_synthesizer_api.h:145
Definition: audio_synthesizer_api.h:172
void * param
[in] General parameter to callback arguments
Definition: audio_synthesizer_api.h:179
SynthesizerCallback cb
[in] Processing completion callback
Definition: audio_synthesizer_api.h:175
Definition: audio_synthesizer_api.h:315
AsSynthesizerPoolId_t pool_id
[in] ID of memory pool for processing data
Definition: audio_synthesizer_api.h:322
AsSynthesizerMsgQueId_t msgq_id
[in] ID for sending messages to each function
Definition: audio_synthesizer_api.h:318
Definition: audio_synthesizer_api.h:199
uint16_t sustain
[in] sustain
Definition: audio_synthesizer_api.h:228
uint8_t bit_width
[in] Bit depth
Definition: audio_synthesizer_api.h:210
uint16_t attack
[in] attack
Definition: audio_synthesizer_api.h:222
uint16_t decay
[in] decay
Definition: audio_synthesizer_api.h:225
uint8_t channel_num
[in] Number of channels
Definition: audio_synthesizer_api.h:206
AsSynthesizerWaveMode type
[in] Waveform type
Definition: audio_synthesizer_api.h:202
AsSynthesizerDataDest dest
[in] Data destination, callback or message
Definition: audio_synthesizer_api.h:250
AsSynthesizerDataPath data_path
[in] Select Data path from oscillator
Definition: audio_synthesizer_api.h:243
uint16_t release
[in] release
Definition: audio_synthesizer_api.h:232
uint32_t sampling_rate
[in] sampling rate
Definition: audio_synthesizer_api.h:218
uint16_t sample_size
[in] sample per frame
Definition: audio_synthesizer_api.h:214
Definition: audio_common_defs.h:703
Definition: audio_synthesizer_api.h:255
uint16_t sustain
[in] sustain
Definition: audio_synthesizer_api.h:272
uint8_t channel_no
[in] Channel number
Definition: audio_synthesizer_api.h:258
uint16_t attack
[in] attack
Definition: audio_synthesizer_api.h:266
uint16_t decay
[in] decay
Definition: audio_synthesizer_api.h:269
uint16_t release
[in] release
Definition: audio_synthesizer_api.h:276
uint32_t frequency
[in] Sound frequency
Definition: audio_synthesizer_api.h:262
Definition: audio_synthesizer_api.h:192
Definition: audio_synthesizer_api.h:283
uint8_t mng
[in] Message queue id of audio_manager
Definition: audio_synthesizer_api.h:290
uint8_t dsp
[in] Message queue id of DSP
Definition: audio_synthesizer_api.h:294
uint8_t synthesizer
[in] Message queue id of synthesizer
Definition: audio_synthesizer_api.h:286
Definition: audio_synthesizer_api.h:301
MemMgrLite::PoolId dsp
[in] Memory pool id of dsp command data
Definition: audio_synthesizer_api.h:308
MemMgrLite::PoolId output
[in] Memory pool id of output data
Definition: audio_synthesizer_api.h:304
Definition: MemMgrTypes.h:88
Definition: audio_synthesizer_api.h:188