cn.tee3.avd_SDK-C++
2.1.0
|
音频设备管理接口. 更多...
类 | |
class | IListener |
音频设备管理回调接口. 更多... | |
Public 成员函数 | |
virtual Result | setListener (IListener *listener)=0 |
设置音频设备管理回调接口 更多... | |
virtual Result | getMicrophones (MicrophonesType &items) const =0 |
microphone 更多... | |
virtual const Microphone & | getMicrophone (const DeviceId &id) const =0 |
获取指定设备Id的本机麦克风设备信息 更多... | |
virtual const Microphone & | getRecordingMicrophone () const =0 |
获取当前默认使用的本机麦克风设备信息 更多... | |
virtual Result | setRecordingMicrophone (const DeviceId &id)=0 |
设置当前默认使用的本机麦克风设备 更多... | |
virtual Result | setRecordingVolume (uint32 volume)=0 |
设置录音的音量大小 更多... | |
virtual uint32 | getRecordingVolume () const =0 |
获取播放的音量大小 更多... | |
virtual DeviceId | getFakeMicrophoneId () const =0 |
获取虚拟录音设备ID 更多... | |
virtual Result | getSpeakers (SpeakersType &items) const =0 |
speaker 更多... | |
virtual const Speaker & | getSpeaker (const DeviceId &id) const =0 |
获取指定设备Id的本机扬声器设备信息 更多... | |
virtual const Speaker & | getPlayoutSpeaker () const =0 |
获取当前默认使用的本机扬声器设备信息 更多... | |
virtual Result | setPlayoutSpeaker (const DeviceId &id)=0 |
设置当前默认使用的本机扬声器设备 更多... | |
virtual Result | setPlayoutVolume (uint32 volume)=0 |
设置当前默认扬声器的音量大小 更多... | |
virtual uint32 | getPlayoutVolume () const =0 |
获取当前默认扬声器的音量大小 更多... | |
virtual Result | recordPlayStart ()=0 |
for testing 更多... | |
virtual Result | recordPlayStop ()=0 |
停止录制并且播放声音 更多... | |
virtual Result | playVoice (const String &file, bool loop, FileFormats format)=0 |
开始播放声音文件 更多... | |
virtual Result | stopVoice ()=0 |
停止播放声音文件 更多... | |
virtual bool | isPlayingVoice ()=0 |
是否正在播放声音文件 更多... | |
virtual uint32 | getRecordLevel ()=0 |
获取录音能级0-9 更多... | |
virtual uint32 | getPlayoutLevel ()=0 |
获取播放声音能级0-9 更多... | |
virtual Result | setListener (IListener *listener)=0 |
设置音频设备管理回调接口 更多... | |
virtual Result | getMicrophones (MicrophonesType &items) const =0 |
microphone 更多... | |
virtual const Microphone & | getMicrophone (const DeviceId &id) const =0 |
获取指定设备Id的本机麦克风设备信息 更多... | |
virtual const Microphone & | getRecordingMicrophone () const =0 |
获取当前默认使用的本机麦克风设备信息 更多... | |
virtual Result | setRecordingMicrophone (const DeviceId &id)=0 |
设置当前默认使用的本机麦克风设备 更多... | |
virtual Result | setRecordingVolume (uint32 volume)=0 |
设置录音的音量大小 更多... | |
virtual uint32 | getRecordingVolume () const =0 |
获取播放的音量大小 更多... | |
virtual DeviceId | getFakeMicrophoneId () const =0 |
获取虚拟录音设备ID 更多... | |
virtual Result | getSpeakers (SpeakersType &items) const =0 |
speaker 更多... | |
virtual const Speaker & | getSpeaker (const DeviceId &id) const =0 |
获取指定设备Id的本机扬声器设备信息 更多... | |
virtual const Speaker & | getPlayoutSpeaker () const =0 |
获取当前默认使用的本机扬声器设备信息 更多... | |
virtual Result | setPlayoutSpeaker (const DeviceId &id)=0 |
设置当前默认使用的本机扬声器设备 更多... | |
virtual Result | setPlayoutVolume (uint32 volume)=0 |
设置当前默认扬声器的音量大小 更多... | |
virtual uint32 | getPlayoutVolume () const =0 |
获取当前默认扬声器的音量大小 更多... | |
virtual Result | recordPlayStart ()=0 |
for testing 更多... | |
virtual Result | recordPlayStop ()=0 |
停止录制并且播放声音 更多... | |
virtual Result | playVoice (const String &file, bool loop, FileFormats format)=0 |
开始播放声音文件 更多... | |
virtual Result | stopVoice ()=0 |
停止播放声音文件 更多... | |
virtual bool | isPlayingVoice ()=0 |
是否正在播放声音文件 更多... | |
virtual uint32 | getRecordLevel ()=0 |
获取录音能级0-9 更多... | |
virtual uint32 | getPlayoutLevel ()=0 |
获取播放声音能级0-9 更多... | |
静态 Public 成员函数 | |
static IAudioDevice * | Instance () |
获取房间内视频模块接口 更多... | |
Protected 成员函数 | |
virtual | ~IAudioDevice () |
virtual | ~IAudioDevice () |
音频设备管理接口.
音频设备管理接口定义房间中音频设备相关功能接口。
|
protectedvirtual |
|
protectedvirtual |
参考 RT_API_EXPORT.
|
pure virtual |
获取虚拟录音设备ID
|
pure virtual |
获取虚拟录音设备ID
|
pure virtual |
获取指定设备Id的本机麦克风设备信息
[in] | id | 设备Id。 |
|
pure virtual |
获取指定设备Id的本机麦克风设备信息
[in] | id | 设备Id。 |
|
pure virtual |
microphone
获取本机麦克风设备信息列表
[in,out] | items | 麦克风设备集合存放列表。 |
|
pure virtual |
microphone
获取本机麦克风设备信息列表
[in,out] | items | 麦克风设备集合存放列表。 |
|
pure virtual |
获取播放声音能级0-9
|
pure virtual |
获取播放声音能级0-9
|
pure virtual |
获取当前默认使用的本机扬声器设备信息
|
pure virtual |
获取当前默认使用的本机扬声器设备信息
|
pure virtual |
获取当前默认扬声器的音量大小
|
pure virtual |
获取当前默认扬声器的音量大小
|
pure virtual |
获取当前默认使用的本机麦克风设备信息
|
pure virtual |
获取当前默认使用的本机麦克风设备信息
|
pure virtual |
获取播放的音量大小
|
pure virtual |
获取播放的音量大小
|
pure virtual |
获取录音能级0-9
|
pure virtual |
获取录音能级0-9
|
pure virtual |
获取指定设备Id的本机扬声器设备信息
[in] | id | 设备Id。 |
|
pure virtual |
获取指定设备Id的本机扬声器设备信息
[in] | id | 设备Id。 |
|
pure virtual |
speaker
获取本机扬声器设备信息列表
[in,out] | items | 扬声器设备集合存放列表。 |
|
pure virtual |
speaker
获取本机扬声器设备信息列表
[in,out] | items | 扬声器设备集合存放列表。 |
|
static |
获取房间内视频模块接口
[in] | room | 房间对象指针。 |
|
pure virtual |
是否正在播放声音文件
|
pure virtual |
是否正在播放声音文件
|
pure virtual |
开始播放声音文件
[in] | file | 音频文件。 |
[in] | loop | 单次播放结束后,是否重复播放。 |
[in] | format | 指定音频文件格式。 |
|
pure virtual |
开始播放声音文件
[in] | file | 音频文件。 |
[in] | loop | 单次播放结束后,是否重复播放。 |
[in] | format | 指定音频文件格式。 |
|
pure virtual |
for testing
开始录制并且播放声音
|
pure virtual |
for testing
开始录制并且播放声音
|
pure virtual |
停止录制并且播放声音
|
pure virtual |
停止录制并且播放声音
设置当前默认使用的本机扬声器设备
[in] | id | 设备Id。 |
设置当前默认使用的本机扬声器设备
[in] | id | 设备Id。 |
设置当前默认扬声器的音量大小
[in] | volume | 扬声器音量,取值:0 至 100,0为最小,100最大。 |
设置当前默认扬声器的音量大小
[in] | volume | 扬声器音量,取值:0 至 100,0为最小,100最大。 |
设置当前默认使用的本机麦克风设备
[in] | id | 设备Id。 |
设置当前默认使用的本机麦克风设备
[in] | id | 设备Id。 |
设置录音的音量大小
[in] | volume | 麦克风音量,取值:0 至 100,0为最小,100最大。 |
设置录音的音量大小
[in] | volume | 麦克风音量,取值:0 至 100,0为最小,100最大。 |
|
pure virtual |
停止播放声音文件
|
pure virtual |
停止播放声音文件