AudioSettingClass

AudioSettingClass

Description
A class used to initialize audio stream parameters for the audio codec.

Syntax
class AudioSetting

Members

Public Constructors 
AudioSetting::AudioSettingConstructs a AudioSetting object.

AudioClass

Description
A class used to configure and initialize the on-board Audio Codec to generate an audio data stream.

Syntax
class Audio

Members

Public Constructors 
Audio::AudioConstructs an Audio object.
Public Methods 
AudioClass::configAudioConfigure audio module by setting up audio parameters.
AudioClass::beginOpen audio module.
AudioClass::endClose the audio module.
AudioClass::printInfoPrint out current configuration of audio channels.

AudioClass::configAudio

Description
Configure audio module by setting up audio paramters.

Syntax
void configAudio(AudioSetting& config);

Parameters
config: AudioSetting object.

Returns
NA

Example Code
NA

Notes and Warnings
“Audio.h” must be included to use the class function.

AudioClass::begin

Description
Open audio module, parameters can be adjusted in “Audio.h”.

Syntax
void begin(void);

Parameters
NA

Returns
NA

Example Code
StreamRTSPSingleVideoWithAudio
(https://github.com/ambiot/ambpro2_arduino/blob/dev/Arduino_package/hardware/libraries/Video/examples/StreamRTSPSingleVideoWithAudio/StreamRTSPSingleVideoWithAudio.ino)

Notes and Warnings
“Audio.h” must be included to use the class function.

AudioClass::end

Description
Close the audio module.

Syntax
void end(void);

Parameters
NA

Returns
NA

Example Code
NA

Notes and Warnings
“Audio.h” must be included to use the class function.

AudioClass::printInfo

Description
Print out current configuration of audio channel.

Syntax
void printInfo(void);

Parameters
NA

Returns
NA

Example Code
StreamRTSPSingleVideoWithAudio
(https://github.com/ambiot/ambpro2_arduino/blob/dev/Arduino_package/hardware/libraries/Video/examples/StreamRTSPSingleVideoWithAudio/StreamRTSPSingleVideoWithAudio.ino)

Notes and Warnings
“Audio.h” must be included to use the class function.

请先确认已安装QQ通讯软体