rtc.avd_SDK-C++  3.2.0
Public 成员函数 | 静态 Public 成员函数 | 所有成员列表
rtc::GlobalDeviceManager类 参考abstract

全局设备管理接口。 更多...

Public 成员函数

virtual void AddCameraListener (CameraListener *cameraListener)=0
 
virtual void AddMicrophoneListener (MicrophoneListener *microphoneListener)=0
 
virtual void AddSpeakerListener (SpeakerListener *cameraListener)=0
 
virtual void RemoveCameraListener (CameraListener *cameraListener)=0
 
virtual void RemoveMicrophoneListener (MicrophoneListener *microphoneListener)=0
 
virtual void RemoveSpeakerListener (SpeakerListener *speakerListener)=0
 
virtual uint32 GetInputLevel ()=0
 
virtual uint32 GetOutputLevel ()=0
 
virtual bool RecordPlayStart ()=0
 
virtual bool RecordPlayStop ()=0
 
virtual bool PlayVoice (const std::string &file, bool loop, rtc::FileFormats format)=0
 
virtual bool IsPlayingVoice ()=0
 
virtual bool StopVoice ()=0
 
virtual ~GlobalDeviceManager ()
 

静态 Public 成员函数

static GlobalDeviceManager * Instance ()
 获取设备管理接口句柄。 更多...
 
static bool SetAudioInterface (AudioInInterface *in, AudioOutInterface *out)
 设置音频导入导出接口。 更多...
 
static bool GetCameras (rtc::CamerasType &devices)
 
static bool GetMicphones (rtc::MicrophonesType &devices)
 
static bool GetFakeMicphone (rtc::Microphone &micphone)
 
static bool GetSpeakers (rtc::SpeakersType &devices)
 
static bool GetScreenWnds (rtc::ScreensType &devices)
 
static bool GetRecordingMicrophone (rtc::Microphone &micphone)
 
static bool SetRecordingMicrophone (const rtc::Microphone &micphone)
 
static bool GetPlayoutSpeaker (rtc::Speaker &speaker)
 
static bool SetPlayoutSpeaker (const rtc::Speaker &speaker)
 
static bool SetPlayoutVolume (uint32 volume)
 
static uint32 GetPlayoutVolume ()
 
static bool SetRecordingVolume (uint32 volume)
 
static uint32 GetRecordingVolume ()
 
static rtc::CapabilitiesType GetCapabilities (const std::string &id)
 

详细描述

全局设备管理接口。

构造及析构函数说明

◆ ~GlobalDeviceManager()

virtual rtc::GlobalDeviceManager::~GlobalDeviceManager ( )
virtual

成员函数说明

◆ AddCameraListener()

virtual void rtc::GlobalDeviceManager::AddCameraListener ( CameraListener *  cameraListener)
pure virtual

◆ AddMicrophoneListener()

virtual void rtc::GlobalDeviceManager::AddMicrophoneListener ( MicrophoneListener *  microphoneListener)
pure virtual

◆ AddSpeakerListener()

virtual void rtc::GlobalDeviceManager::AddSpeakerListener ( SpeakerListener *  cameraListener)
pure virtual

◆ GetCameras()

static bool rtc::GlobalDeviceManager::GetCameras ( rtc::CamerasType &  devices)
static

◆ GetCapabilities()

static rtc::CapabilitiesType rtc::GlobalDeviceManager::GetCapabilities ( const std::string &  id)
static

◆ GetFakeMicphone()

static bool rtc::GlobalDeviceManager::GetFakeMicphone ( rtc::Microphone &  micphone)
static

◆ GetInputLevel()

virtual uint32 rtc::GlobalDeviceManager::GetInputLevel ( )
pure virtual

◆ GetMicphones()

static bool rtc::GlobalDeviceManager::GetMicphones ( rtc::MicrophonesType &  devices)
static

◆ GetOutputLevel()

virtual uint32 rtc::GlobalDeviceManager::GetOutputLevel ( )
pure virtual

◆ GetPlayoutSpeaker()

static bool rtc::GlobalDeviceManager::GetPlayoutSpeaker ( rtc::Speaker &  speaker)
static

◆ GetPlayoutVolume()

static uint32 rtc::GlobalDeviceManager::GetPlayoutVolume ( )
static

◆ GetRecordingMicrophone()

static bool rtc::GlobalDeviceManager::GetRecordingMicrophone ( rtc::Microphone &  micphone)
static

◆ GetRecordingVolume()

static uint32 rtc::GlobalDeviceManager::GetRecordingVolume ( )
static

◆ GetScreenWnds()

static bool rtc::GlobalDeviceManager::GetScreenWnds ( rtc::ScreensType &  devices)
static

◆ GetSpeakers()

static bool rtc::GlobalDeviceManager::GetSpeakers ( rtc::SpeakersType &  devices)
static

◆ Instance()

static GlobalDeviceManager* rtc::GlobalDeviceManager::Instance ( )
static

获取设备管理接口句柄。

返回
返回句柄。

◆ IsPlayingVoice()

virtual bool rtc::GlobalDeviceManager::IsPlayingVoice ( )
pure virtual

◆ PlayVoice()

virtual bool rtc::GlobalDeviceManager::PlayVoice ( const std::string &  file,
bool  loop,
rtc::FileFormats  format 
)
pure virtual

◆ RecordPlayStart()

virtual bool rtc::GlobalDeviceManager::RecordPlayStart ( )
pure virtual

◆ RecordPlayStop()

virtual bool rtc::GlobalDeviceManager::RecordPlayStop ( )
pure virtual

◆ RemoveCameraListener()

virtual void rtc::GlobalDeviceManager::RemoveCameraListener ( CameraListener *  cameraListener)
pure virtual

◆ RemoveMicrophoneListener()

virtual void rtc::GlobalDeviceManager::RemoveMicrophoneListener ( MicrophoneListener *  microphoneListener)
pure virtual

◆ RemoveSpeakerListener()

virtual void rtc::GlobalDeviceManager::RemoveSpeakerListener ( SpeakerListener *  speakerListener)
pure virtual

◆ SetAudioInterface()

static bool rtc::GlobalDeviceManager::SetAudioInterface ( AudioInInterface *  in,
AudioOutInterface *  out 
)
static

设置音频导入导出接口。

参数
[in]in音频导入接口。
[in]out音频导出接口。
返回
(true/false)成功该接口有效,目前只有特定模式(嵌入式平台)下改接口有效,。

◆ SetPlayoutSpeaker()

static bool rtc::GlobalDeviceManager::SetPlayoutSpeaker ( const rtc::Speaker &  speaker)
static

◆ SetPlayoutVolume()

static bool rtc::GlobalDeviceManager::SetPlayoutVolume ( uint32  volume)
static

◆ SetRecordingMicrophone()

static bool rtc::GlobalDeviceManager::SetRecordingMicrophone ( const rtc::Microphone &  micphone)
static

◆ SetRecordingVolume()

static bool rtc::GlobalDeviceManager::SetRecordingVolume ( uint32  volume)
static

◆ StopVoice()

virtual bool rtc::GlobalDeviceManager::StopVoice ( )
pure virtual

该类的文档由以下文件生成: