30#error "Audio library is NOT supported by SubCore."
35#include <audio/audio_high_level_api.h>
42#define OUTPUTMIXER_LOG_DEBUG
44#define print_err printf
46#ifdef OUTPUTMIXER_LOG_DEBUG
47#define print_dbg(...) printf(__VA_ARGS__)
49#define print_dbg(x...)
56#define OUTPUTMIXER_ECODE_OK 0
57#define OUTPUTMIXER_ECODE_COMMAND_ERROR 1
63#define OUTPUTMIXER_RNDCLK_NORMAL (0)
64#define OUTPUTMIXER_RNDCLK_HIRESO (1)
135 AsOutputMixerHandle handle,
136 OutputMixerCallback omcb
149 AsOutputMixerHandle handle,
150 uint8_t output_device,
151 OutputMixerCallback omcb
164 AsOutputMixerHandle handle,
165 PcmProcDoneCallback pcmdone_cb,
177 AsOutputMixerHandle handle
OutputMixer Class Definitions.
Definition: OutputMixer.h:75
err_t deactivate(AsOutputMixerHandle handle)
Deactivate the OutputMixer.
err_t create(AudioAttentionCb attcb)
Creation of the OutputMixer.
err_t activateBaseband(void)
Activate Audio Hw.
err_t begin(void)
Initialize the OutputMixer.
Definition: OutputMixer.h:95
err_t activate(AsOutputMixerHandle handle, uint8_t output_device, OutputMixerCallback omcb)
Activate the OutputMixer with specify output device.
err_t create(void)
Creation of the OutputMixer.
bool setRenderingClkMode(uint8_t clk_mode)
Set Rendering clock mode.
err_t sendData(AsOutputMixerHandle handle, PcmProcDoneCallback pcmdone_cb, AsPcmDataParam pcm)
Send PCM data via OutputMixer.
err_t deactivateBaseband(void)
Deactivate Audio Hw.
err_t end(void)
Finalize the OutputMixer.
Definition: OutputMixer.h:104
err_t setVolume(int master, int player0, int player1)
Set speaker out volume.
static OutputMixer * getInstance()
Get instance of MediaRecorder for singleton.
Definition: OutputMixer.h:82
err_t activate(AsOutputMixerHandle handle, OutputMixerCallback omcb)
Activate the OutputMixer.
unsigned int err_t
Definition: Audio.h:108