|
cn.3tee.avd_SDK-C
3.2.0
|
类 | |
| struct | Audio_Callback |
| 房间中音频模块回调接口. 更多... | |
| struct | AudioDevice_Callback |
| 房间中音频模块回调接口. 更多... | |
类型定义 | |
| typedef rtc::MicrophoneStatus | AVDMicrophoneStatus |
| typedef struct Audio_Callback * | LPAudio_Callback |
| 房间中音频模块回调接口. 更多... | |
| typedef AVDDevice | AVDMicrophone |
| typedef AVDDevice | AVDSpeaker |
| typedef struct AudioDevice_Callback * | LPAudioDevice_Callback |
| 房间中音频模块回调接口. 更多... | |
函数 | |
| RT_API_EXPORT Result | avd_audio_init (AVDHandle roomHandle, LPAudio_Callback cb, AVDHandle &audioHandle) |
| 房间中音频模块接口. 更多... | |
| RT_API_EXPORT Result | avd_audio_uninit (AVDHandle audioHandle) |
| 反初始化音频模块接口. 更多... | |
| RT_API_EXPORT Result | avd_audio_openMicrophone (AVDHandle audioHandle) |
| 打开本地麦克风发布到房间中 更多... | |
| RT_API_EXPORT Result | avd_audio_closeMicrophone (AVDHandle audioHandle) |
| 关闭本地麦克风发布到房间中 更多... | |
| RT_API_EXPORT AVDMicrophoneStatus | avd_audio_getMicrophoneStatus (AVDHandle audioHandle) |
| 获取本地麦克风状态 更多... | |
| RT_API_EXPORT Result | avd_audio_muteMicrophone (AVDHandle audioHandle) |
| 本地麦克风静默 更多... | |
| RT_API_EXPORT Result | avd_audio_unmuteMicrophone (AVDHandle audioHandle) |
| 本地麦克风取消静默 更多... | |
| RT_API_EXPORT AVDBool | avd_audio_ismuteMicrophone (AVDHandle audioHandle) |
| 判断本地麦克风是否静默 更多... | |
| RT_API_EXPORT Result | avd_audio_muteSpeaker (AVDHandle audioHandle) |
| 本地扬声器静默 更多... | |
| RT_API_EXPORT Result | avd_audio_unmuteSpeaker (AVDHandle audioHandle) |
| 本地扬声器取消静默 更多... | |
| RT_API_EXPORT AVDBool | avd_audio_ismuteSpeaker (AVDHandle audioHandle) |
| 判断本地扬声器是否静默 更多... | |
| RT_API_EXPORT AVDMicrophoneStatus | avd_audio_getRemoteMicrophoneStatus (AVDHandle audioHandle, const char *userId) |
| 获取远端麦克风状态 更多... | |
| RT_API_EXPORT Result | avd_audio_remotecmdOpenMicrophone (AVDHandle audioHandle, const char *userId) |
| 命令远端用户打开麦克风 更多... | |
| RT_API_EXPORT Result | avd_audio_remotecmdCloseMicrophone (AVDHandle audioHandle, const char *userId) |
| 命令远端用户关闭麦克风 更多... | |
| RT_API_EXPORT Result | avd_audio_monitorAudioLevel (AVDHandle audioHandle) |
| 开启语音激励功能 更多... | |
| RT_API_EXPORT Result | avd_audio_unmonitorAudioLevel (AVDHandle audioHandle) |
| 关闭语音激励 更多... | |
| RT_API_EXPORT AVDBool | avd_audio_ismonitorAudioLevel (AVDHandle audioHandle) |
| 判断是否开启语音激励 更多... | |
| RT_API_EXPORT Result | avd_audio_enableImportAudioData (AVDBool isEnable) |
| 当前AVD引擎使用音频导入作为音频源 更多... | |
| RT_API_EXPORT Result | avd_audio_importCapturedFrame (uint64 timestamp_ns, int sampleRate, int channels, const uint8 *data, size_t len) |
| 给Capturer输入PCM原始数据 更多... | |
| RT_API_EXPORT Result | avd_audio_importAACFrame (uint64 timestamp_ns, int sampleRate, int channels, const uint8 *data, size_t len, int samplesOfEncodedData) |
| 给Capturer输入AAC编码后的数据 更多... | |
| RT_API_EXPORT Result | avd_audio_subscribe (AVDHandle audioHandle, const char *userId) |
| 订阅一个用户的音频 更多... | |
| RT_API_EXPORT Result | avd_audio_unsubscribe (AVDHandle audioHandle, const char *userId) |
| 取消订阅一个用户的音频 更多... | |
| RT_API_EXPORT uint32 | avd_audio_getPubAudioUsersCount (AVDHandle audioHandle) |
| 获取已经publish的音频用户数 更多... | |
| RT_API_EXPORT uint32 | avd_audio_getSubAudioUsersCount (AVDHandle audioHandle) |
| 获取已经sub的音频用户数量 更多... | |
| RT_API_EXPORT Result | avd_audio_getPubAudioUserByIndex (AVDHandle audioHandle, uint32 index, AVDUserId &item) |
| 根据索引获取发布的摄像头信息 更多... | |
| RT_API_EXPORT Result | avd_audio_getSubdAudioUserByIndex (AVDHandle audioHandle, uint32 index, AVDUserId &item) |
| 根据索引获取订阅的摄像头信息 更多... | |
| RT_API_EXPORT Result | avd_audio_getPubAudioUsers (AVDHandle audioHandle, uint32 &ncounts, AVDUserId *&items) |
| 获取已经publish的音频用户 更多... | |
| RT_API_EXPORT Result | avd_audio_getSubAudioUsers (AVDHandle audioHandle, uint32 &ncounts, AVDUserId *&items) |
| 获取已经Subscrib的音频用户 更多... | |
| RT_API_EXPORT AVDBool | avd_audio_isAudioPublished (AVDHandle audioHandle, const char *userId) |
| 判断用户音频是否已经发布 更多... | |
| RT_API_EXPORT AVDBool | avd_audio_isAudioSubscribed (AVDHandle audioHandle, const char *userId) |
| 判断用户音频是否已经订阅 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_init (AVDHandle audioHandle, LPAudioDevice_Callback cb, AVDHandle &adeviceHandle) |
| 音频设备管理接口. 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_uninit (AVDHandle adeviceHandle) |
| 反初始化音频设备管理接口 更多... | |
| RT_API_EXPORT uint32 | avd_audiodevice_getMicrophoneCount (AVDHandle adeviceHandle) |
| 获取本机麦克风设备数量 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_getMicrophone (AVDHandle adeviceHandle, uint32 index, AVDMicrophone &item) |
| 根据索引获取本机麦克风设备信息 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_getMicrophones (AVDHandle adeviceHandle, uint32 &ncount, AVDMicrophone *&mics) |
| 获取本机麦克风设备信息列表 更多... | |
| RT_API_EXPORT uint32 | avd_audiodevice_getSpeakerCount (AVDHandle adeviceHandle) |
| 获取本机扬声器声音输出设备数量 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_getSpeaker (AVDHandle adeviceHandle, uint32 index, AVDSpeaker &item) |
| 根据索引获取本机扬声器声音输出设备信息 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_getSpeakers (AVDHandle adeviceHandle, uint32 &ncount, AVDSpeaker *&spks) |
| 获取本机扬声器设备信息列表 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_getRecordingMicrophone (AVDHandle adeviceHandle, AVDMicrophone &item) |
| 获取当前默认使用的本机麦克风设备信息 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_setRecordingMicrophone (AVDHandle adeviceHandle, const char *deviceId) |
| 设置当前默认使用的本机麦克风设备信息 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_getPlayoutSpeaker (AVDHandle adeviceHandle, AVDSpeaker &item) |
| 获取当前默认使用的本机扬声器设备信息 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_setPlayoutSpeaker (AVDHandle adeviceHandle, const char *deviceId) |
| 设置当前默认使用的本机扬声器设备信息 更多... | |
| RT_API_EXPORT uint32 | avd_audiodevice_getRecordingVolume (AVDHandle adeviceHandle) |
| 获取麦克风录音音量 更多... | |
| RT_API_EXPORT uint32 | avd_audiodevice_getPlayoutVolume (AVDHandle adeviceHandle) |
| 获取扬声器播放音量 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_setRecordingVolume (AVDHandle adeviceHandle, uint32 volume) |
| 设置录音的音量大小 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_setPlayoutVolume (AVDHandle adeviceHandle, uint32 volume) |
| 设置扬声器播放音量大小 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_recordPlayStart (AVDHandle adeviceHandle) |
| for testing 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_recordPlayStop (AVDHandle adeviceHandle) |
| 停止录制并且停止播放声音 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_playVoice (AVDHandle adeviceHandle, const char *file, AVDBool loop, rtc::FileFormats format) |
| 开始播放声音文件 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_stopVoice (AVDHandle adeviceHandle) |
| 停止播放声音文件 更多... | |
| RT_API_EXPORT AVDBool | avd_audiodevice_isPlayingVoice (AVDHandle adeviceHandle) |
| 是否正在播放声音文件 更多... | |
| RT_API_EXPORT uint32 | avd_audiodevice_getRecordLevel (AVDHandle adeviceHandle) |
| 获取录音能级0-9 更多... | |
| RT_API_EXPORT uint32 | avd_audiodevice_getPlayoutLevel (AVDHandle adeviceHandle) |
| 获取播放声音能级0-9 更多... | |
| RT_API_EXPORT Result | avd_audiodevice_getFakeMicrophoneId (AVDHandle adeviceHandle, char *deviceId, uint32 &didsize) |
| 获取虚拟录音设备ID 更多... | |
| typedef AVDDevice AVDMicrophone |
| typedef rtc::MicrophoneStatus AVDMicrophoneStatus |
| typedef AVDDevice AVDSpeaker |
| typedef struct Audio_Callback* LPAudio_Callback |
房间中音频模块回调接口.
音频模块回调接口定义了房间中音频相关如麦克风、扬声器的通知和异步操作返回。
| typedef struct AudioDevice_Callback* LPAudioDevice_Callback |
房间中音频模块回调接口.
音频模块回调接口定义了房间中音频相关如麦克风、扬声器的通知和异步操作返回。
| RT_API_EXPORT Result avd_audio_closeMicrophone | ( | AVDHandle | audioHandle | ) |
关闭本地麦克风发布到房间中
| [in] | audioHandle | 音频模块句柄。 |
| RT_API_EXPORT Result avd_audio_enableImportAudioData | ( | AVDBool | isEnable | ) |
当前AVD引擎使用音频导入作为音频源
| RT_API_EXPORT AVDMicrophoneStatus avd_audio_getMicrophoneStatus | ( | AVDHandle | audioHandle | ) |
获取本地麦克风状态
| [in] | audioHandle | 音频模块句柄。 |
| RT_API_EXPORT Result avd_audio_getPubAudioUserByIndex | ( | AVDHandle | audioHandle, |
| uint32 | index, | ||
| AVDUserId & | item | ||
| ) |
根据索引获取发布的摄像头信息
| [in] | audioHandle | 视频模块句柄。 |
| [in] | index | 索引编号,从0开始。 |
| [out] | item | 用户id。 |
| RT_API_EXPORT Result avd_audio_getPubAudioUsers | ( | AVDHandle | audioHandle, |
| uint32 & | ncounts, | ||
| AVDUserId *& | items | ||
| ) |
获取已经publish的音频用户
| [in,out] | ncounts | 用户列表数。 |
| [in,out] | items | 用户列表。 |
| RT_API_EXPORT uint32 avd_audio_getPubAudioUsersCount | ( | AVDHandle | audioHandle | ) |
获取已经publish的音频用户数
| RT_API_EXPORT AVDMicrophoneStatus avd_audio_getRemoteMicrophoneStatus | ( | AVDHandle | audioHandle, |
| const char * | userId | ||
| ) |
获取远端麦克风状态
| [in] | audioHandle | 音频模块句柄。 |
| [in] | *userId | 关联用户Id。 |
| RT_API_EXPORT Result avd_audio_getSubAudioUsers | ( | AVDHandle | audioHandle, |
| uint32 & | ncounts, | ||
| AVDUserId *& | items | ||
| ) |
获取已经Subscrib的音频用户
| [in,out] | ncounts | 用户列表数。 |
| [in,out] | items | 用户列表。 |
| RT_API_EXPORT uint32 avd_audio_getSubAudioUsersCount | ( | AVDHandle | audioHandle | ) |
获取已经sub的音频用户数量
| RT_API_EXPORT Result avd_audio_getSubdAudioUserByIndex | ( | AVDHandle | audioHandle, |
| uint32 | index, | ||
| AVDUserId & | item | ||
| ) |
根据索引获取订阅的摄像头信息
| [in] | audioHandle | 视频模块句柄。 |
| [in] | index | 索引编号,从0开始。 |
| [out] | item | 用户id。 |
| RT_API_EXPORT Result avd_audio_importAACFrame | ( | uint64 | timestamp_ns, |
| int | sampleRate, | ||
| int | channels, | ||
| const uint8 * | data, | ||
| size_t | len, | ||
| int | samplesOfEncodedData | ||
| ) |
给Capturer输入AAC编码后的数据
| [in] | timestamp_ns | 时间戳, nanos second。 |
| [in] | sampleRate | 音频采样率 |
| [in] | channels | 音频采集通道数 |
| [in] | data | 音频内容数据指针 |
| [in] | len | 音频内容大小 |
| [in] | samplesOfEncodedData | 音频编码数据包含的采样数(一般情况AAC每次编码都是1024 * channels个采样) |
| RT_API_EXPORT Result avd_audio_importCapturedFrame | ( | uint64 | timestamp_ns, |
| int | sampleRate, | ||
| int | channels, | ||
| const uint8 * | data, | ||
| size_t | len | ||
| ) |
给Capturer输入PCM原始数据
| [in] | timestamp_ns | 时间戳, nanos second。 |
| [in] | sampleRate | 音频采样率 |
| [in] | channels | 音频采集通道数 |
| [in] | data | 音频内容数据指针 |
| [in] | len | 音频内容大小 |
| RT_API_EXPORT Result avd_audio_init | ( | AVDHandle | roomHandle, |
| LPAudio_Callback | cb, | ||
| AVDHandle & | audioHandle | ||
| ) |
房间中音频模块接口.
房间音频模块定义房间音频相关如麦克风、扬声器相关操作功能接口。初始化音频模块接口.
| [in] | roomHandle | 房间句柄。 |
| [in] | cb | 音频模块回调接口指针。 |
| [out] | audioHandle | 音频模块句柄。 |
| RT_API_EXPORT AVDBool avd_audio_isAudioPublished | ( | AVDHandle | audioHandle, |
| const char * | userId | ||
| ) |
判断用户音频是否已经发布
| [in] | userId | 摄像头Id,唯一标示用户ID。 |
| RT_API_EXPORT AVDBool avd_audio_isAudioSubscribed | ( | AVDHandle | audioHandle, |
| const char * | userId | ||
| ) |
判断用户音频是否已经订阅
| [in] | userId | 摄像头Id,唯一标示用户ID。 |
| RT_API_EXPORT AVDBool avd_audio_ismonitorAudioLevel | ( | AVDHandle | audioHandle | ) |
判断是否开启语音激励
| RT_API_EXPORT AVDBool avd_audio_ismuteMicrophone | ( | AVDHandle | audioHandle | ) |
判断本地麦克风是否静默
| [in] | audioHandle | 音频模块句柄。 |
| RT_API_EXPORT AVDBool avd_audio_ismuteSpeaker | ( | AVDHandle | audioHandle | ) |
判断本地扬声器是否静默
| [in] | audioHandle | 音频模块句柄。 |
| RT_API_EXPORT Result avd_audio_monitorAudioLevel | ( | AVDHandle | audioHandle | ) |
开启语音激励功能
| RT_API_EXPORT Result avd_audio_muteMicrophone | ( | AVDHandle | audioHandle | ) |
本地麦克风静默
| [in] | audioHandle | 音频模块句柄。 |
| RT_API_EXPORT Result avd_audio_muteSpeaker | ( | AVDHandle | audioHandle | ) |
本地扬声器静默
| [in] | audioHandle | 音频模块句柄。 |
| RT_API_EXPORT Result avd_audio_openMicrophone | ( | AVDHandle | audioHandle | ) |
打开本地麦克风发布到房间中
| [in] | audioHandle | 音频模块句柄。 |
| RT_API_EXPORT Result avd_audio_remotecmdCloseMicrophone | ( | AVDHandle | audioHandle, |
| const char * | userId | ||
| ) |
命令远端用户关闭麦克风
| [in] | audioHandle | 音频模块句柄。 |
| [in] | *userId | 关联用户Id。 |
| RT_API_EXPORT Result avd_audio_remotecmdOpenMicrophone | ( | AVDHandle | audioHandle, |
| const char * | userId | ||
| ) |
命令远端用户打开麦克风
| [in] | audioHandle | 音频模块句柄。 |
| [in] | *userId | 关联用户Id。 |
| RT_API_EXPORT Result avd_audio_subscribe | ( | AVDHandle | audioHandle, |
| const char * | userId | ||
| ) |
订阅一个用户的音频
| [in] | userId | 用户Id。 |
| RT_API_EXPORT Result avd_audio_uninit | ( | AVDHandle | audioHandle | ) |
反初始化音频模块接口.
| [in] | audioHandle | 音频模块句柄。 |
| RT_API_EXPORT Result avd_audio_unmonitorAudioLevel | ( | AVDHandle | audioHandle | ) |
关闭语音激励
| RT_API_EXPORT Result avd_audio_unmuteMicrophone | ( | AVDHandle | audioHandle | ) |
本地麦克风取消静默
| [in] | audioHandle | 音频模块句柄。 |
| RT_API_EXPORT Result avd_audio_unmuteSpeaker | ( | AVDHandle | audioHandle | ) |
本地扬声器取消静默
| [in] | audioHandle | 音频模块句柄。 |
| RT_API_EXPORT Result avd_audio_unsubscribe | ( | AVDHandle | audioHandle, |
| const char * | userId | ||
| ) |
取消订阅一个用户的音频
| [in] | userId | 用户Id。 |
| RT_API_EXPORT Result avd_audiodevice_getFakeMicrophoneId | ( | AVDHandle | adeviceHandle, |
| char * | deviceId, | ||
| uint32 & | didsize | ||
| ) |
获取虚拟录音设备ID
| RT_API_EXPORT Result avd_audiodevice_getMicrophone | ( | AVDHandle | adeviceHandle, |
| uint32 | index, | ||
| AVDMicrophone & | item | ||
| ) |
根据索引获取本机麦克风设备信息
| [in] | adeviceHandle | 音频设备模块句柄。 |
| [in] | index | 索引编号,从0开始。 |
| [out] | item | 麦克风信息。 |
| RT_API_EXPORT uint32 avd_audiodevice_getMicrophoneCount | ( | AVDHandle | adeviceHandle | ) |
获取本机麦克风设备数量
| [in] | adeviceHandle | 音频设备模块句柄。 |
| RT_API_EXPORT Result avd_audiodevice_getMicrophones | ( | AVDHandle | adeviceHandle, |
| uint32 & | ncount, | ||
| AVDMicrophone *& | mics | ||
| ) |
获取本机麦克风设备信息列表
| [in] | adeviceHandle | 音频设备模块句柄。 |
| [in,out] | ncount | 传入列表容量,传出获取到的麦克风数量。 |
| [out] | *&mics | 麦克风设备集合存放列表。 |
| RT_API_EXPORT uint32 avd_audiodevice_getPlayoutLevel | ( | AVDHandle | adeviceHandle | ) |
获取播放声音能级0-9
| RT_API_EXPORT Result avd_audiodevice_getPlayoutSpeaker | ( | AVDHandle | adeviceHandle, |
| AVDSpeaker & | item | ||
| ) |
获取当前默认使用的本机扬声器设备信息
| [in] | adeviceHandle | 音频设备模块句柄。 |
| [out] | item | 扬声器设备信息。 |
| RT_API_EXPORT uint32 avd_audiodevice_getPlayoutVolume | ( | AVDHandle | adeviceHandle | ) |
获取扬声器播放音量
| [in] | adeviceHandle | 音频设备模块句柄。 |
| RT_API_EXPORT Result avd_audiodevice_getRecordingMicrophone | ( | AVDHandle | adeviceHandle, |
| AVDMicrophone & | item | ||
| ) |
获取当前默认使用的本机麦克风设备信息
| [in] | adeviceHandle | 音频设备模块句柄。 |
| [out] | item | 麦克风设备信息。 |
| RT_API_EXPORT uint32 avd_audiodevice_getRecordingVolume | ( | AVDHandle | adeviceHandle | ) |
获取麦克风录音音量
| [in] | adeviceHandle | 音频设备模块句柄。 |
| RT_API_EXPORT uint32 avd_audiodevice_getRecordLevel | ( | AVDHandle | adeviceHandle | ) |
获取录音能级0-9
| RT_API_EXPORT Result avd_audiodevice_getSpeaker | ( | AVDHandle | adeviceHandle, |
| uint32 | index, | ||
| AVDSpeaker & | item | ||
| ) |
根据索引获取本机扬声器声音输出设备信息
| [in] | adeviceHandle | 音频设备模块句柄。 |
| [in] | index | 索引编号,从0开始。 |
| [out] | item | 扬声器信息。 |
| RT_API_EXPORT uint32 avd_audiodevice_getSpeakerCount | ( | AVDHandle | adeviceHandle | ) |
获取本机扬声器声音输出设备数量
| [in] | adeviceHandle | 音频设备模块句柄。 |
| RT_API_EXPORT Result avd_audiodevice_getSpeakers | ( | AVDHandle | adeviceHandle, |
| uint32 & | ncount, | ||
| AVDSpeaker *& | spks | ||
| ) |
获取本机扬声器设备信息列表
| [in] | adeviceHandle | 音频设备模块句柄。 |
| [in,out] | ncount | 传入列表容量,传出获取到的麦克风数量。 |
| [out] | *&spks | 扬声器设备集合存放列表。 |
| RT_API_EXPORT Result avd_audiodevice_init | ( | AVDHandle | audioHandle, |
| LPAudioDevice_Callback | cb, | ||
| AVDHandle & | adeviceHandle | ||
| ) |
音频设备管理接口.
音频设备管理接口定义房间中音频设备相关功能接口。初始化音频设备管理接口
| [in] | audioHandle | 音频模块句柄。 |
| [in] | cb | 音频设备管理回调接口指针。 |
| [out] | adeviceHandle | 音频设备管理模块句柄。 |
| RT_API_EXPORT AVDBool avd_audiodevice_isPlayingVoice | ( | AVDHandle | adeviceHandle | ) |
是否正在播放声音文件
| RT_API_EXPORT Result avd_audiodevice_playVoice | ( | AVDHandle | adeviceHandle, |
| const char * | file, | ||
| AVDBool | loop, | ||
| rtc::FileFormats | format | ||
| ) |
开始播放声音文件
| [in] | adeviceHandle | 音频设备模块句柄。 |
| [in] | *file | 音频文件。 |
| [in] | loop | 单次播放结束后,是否重复播放。 |
| [in] | format | 指定音频文件格式。 |
| RT_API_EXPORT Result avd_audiodevice_recordPlayStart | ( | AVDHandle | adeviceHandle | ) |
for testing
开始录制并且播放声音
| [in] | adeviceHandle | 音频设备模块句柄。 |
| RT_API_EXPORT Result avd_audiodevice_recordPlayStop | ( | AVDHandle | adeviceHandle | ) |
停止录制并且停止播放声音
| [in] | adeviceHandle | 音频设备模块句柄。 |
| RT_API_EXPORT Result avd_audiodevice_setPlayoutSpeaker | ( | AVDHandle | adeviceHandle, |
| const char * | deviceId | ||
| ) |
设置当前默认使用的本机扬声器设备信息
| [in] | adeviceHandle | 音频设备模块句柄。 |
| [out] | *deviceId | 扬声器ID号。 |
| RT_API_EXPORT Result avd_audiodevice_setPlayoutVolume | ( | AVDHandle | adeviceHandle, |
| uint32 | volume | ||
| ) |
设置扬声器播放音量大小
| [in] | adeviceHandle | 音频设备模块句柄。 |
| [in] | volume | 扬声器音量,取值:0 至 100,0为最小,100最大。 |
| RT_API_EXPORT Result avd_audiodevice_setRecordingMicrophone | ( | AVDHandle | adeviceHandle, |
| const char * | deviceId | ||
| ) |
设置当前默认使用的本机麦克风设备信息
| [in] | adeviceHandle | 音频设备模块句柄。 |
| [out] | *deviceId | 录音麦克风ID号。 |
| RT_API_EXPORT Result avd_audiodevice_setRecordingVolume | ( | AVDHandle | adeviceHandle, |
| uint32 | volume | ||
| ) |
设置录音的音量大小
| [in] | adeviceHandle | 音频设备模块句柄。 |
| [in] | volume | 麦克风音量,取值:0 至 100,0为最小,100最大。 |
| RT_API_EXPORT Result avd_audiodevice_stopVoice | ( | AVDHandle | adeviceHandle | ) |
停止播放声音文件
| [in] | adeviceHandle | 音频设备模块句柄。 |
| RT_API_EXPORT Result avd_audiodevice_uninit | ( | AVDHandle | adeviceHandle | ) |
反初始化音频设备管理接口
| [in] | adeviceHandle | 音频设备模块句柄。 |
1.8.15