C++SDK
1.0.0
|
#include <maudio.h>
类 | |
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 |
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 |
virtual Result | getSpeakers (SpeakersType &items) const =0 |
speaker 更多... | |
virtual const Speaker & | getSpeaker (const DeviceId &id) const =0 |
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 |
virtual uint32 | getPlayoutLevel ()=0 |
virtual Result | setListener (IListener *listener)=0 |
virtual Result | getMicrophones (MicrophonesType &items) const =0 |
microphone 更多... | |
virtual const Microphone & | getMicrophone (const DeviceId &id) const =0 |
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 |
virtual Result | getSpeakers (SpeakersType &items) const =0 |
speaker 更多... | |
virtual const Speaker & | getSpeaker (const DeviceId &id) const =0 |
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 |
virtual uint32 | getPlayoutLevel ()=0 |
静态 Public 成员函数 | |
static IAudioDevice * | Instance () |
Protected 成员函数 | |
virtual | ~IAudioDevice () |
virtual | ~IAudioDevice () |
音频设备管理接口.
音频设备管理接口定义房间中音频设备相关功能接口。
Ƶ豸ӿ.
Ƶ豸ӿڶ巿Ƶ豸عܽӿڡ
|
inlineprotectedvirtual |
|
inlineprotectedvirtual |
|
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 1000ΪС100 |
设置当前默认使用的本机麦克风设备
[in] | id | 设备Id。 |
õǰĬʹõı˷豸
[in] | id | 豸Id |
设置录音的音量大小
[in] | volume | 麦克风音量,取值:0 至 100,0为最小,100最大。 |
¼С
[in] | volume | ˷ȡֵ0 1000ΪС100 |
|
pure virtual |
停止播放声音文件
|
pure virtual |
ֹͣļ