NERtc Windows SDK  V4.4.301
nertc_audio_device_manager.h
浏览该文件的文档.
1 
7 #ifndef NERTC_AUDIO_DEVICE_MANAGER_H
8 #define NERTC_AUDIO_DEVICE_MANAGER_H
9 
10 #include "nertc_base_types.h"
11 #include "nertc_engine_defines.h"
13 
18 namespace nertc
19 {
25 {
26 protected:
27  virtual ~IAudioDeviceManager() {}
28 
29 public:
48  virtual int setRecordDevice(const char device_id[kNERtcMaxDeviceIDLength]) = 0;
56  virtual int getRecordDevice(char device_id[kNERtcMaxDeviceIDLength]) = 0;
76  virtual int setPlayoutDevice(const char device_id[kNERtcMaxDeviceIDLength]) = 0;
84  virtual int getPlayoutDevice(char device_id[kNERtcMaxDeviceIDLength]) = 0;
85 
93  virtual int setRecordDeviceVolume(uint32_t volume) = 0;
101  virtual int getRecordDeviceVolume(uint32_t* volume) = 0;
109  virtual int setPlayoutDeviceVolume(uint32_t volume) = 0;
117  virtual int getPlayoutDeviceVolume(uint32_t* volume) = 0;
118 
129  virtual int setPlayoutDeviceMute(bool mute) = 0;
130 
141  virtual int getPlayoutDeviceMute(bool *mute) = 0;
152  virtual int setRecordDeviceMute(bool mute) = 0;
153 
164  virtual int getRecordDeviceMute(bool *mute) = 0;
165 
179  virtual int adjustRecordingSignalVolume(uint32_t volume) = 0;
180 
193  virtual int adjustPlaybackSignalVolume(uint32_t volume) = 0;
194 
211  virtual int startRecordDeviceTest(uint64_t indication_interval) = 0;
223  virtual int stopRecordDeviceTest() = 0;
241  virtual int startPlayoutDeviceTest(const char *test_audio_file_path) = 0;
252  virtual int stopPlayoutDeviceTest() = 0;
267  virtual int startAudioDeviceLoopbackTest(uint64_t indication_interval) = 0;
277  virtual int stopAudioDeviceLoopbackTest() = 0;
278 };
279 } //namespace nertc
280 
281 #endif
Definition: nertc_audio_device_manager.h:25
virtual IDeviceCollection * enumerateRecordDevices()=0
virtual int stopAudioDeviceLoopbackTest()=0
virtual int setPlayoutDevice(const char device_id[kNERtcMaxDeviceIDLength])=0
virtual int setRecordDeviceVolume(uint32_t volume)=0
virtual int getRecordDeviceVolume(uint32_t *volume)=0
virtual int setRecordDevice(const char device_id[kNERtcMaxDeviceIDLength])=0
virtual int getRecordDevice(char device_id[kNERtcMaxDeviceIDLength])=0
virtual IDeviceCollection * enumeratePlayoutDevices()=0
virtual int setRecordDeviceMute(bool mute)=0
virtual int getPlayoutDeviceVolume(uint32_t *volume)=0
virtual int startPlayoutDeviceTest(const char *test_audio_file_path)=0
virtual int getPlayoutDeviceMute(bool *mute)=0
virtual int startAudioDeviceLoopbackTest(uint64_t indication_interval)=0
virtual int startRecordDeviceTest(uint64_t indication_interval)=0
virtual int stopPlayoutDeviceTest()=0
virtual int adjustPlaybackSignalVolume(uint32_t volume)=0
virtual int getRecordDeviceMute(bool *mute)=0
virtual int stopRecordDeviceTest()=0
virtual int setPlayoutDeviceVolume(uint32_t volume)=0
virtual int adjustRecordingSignalVolume(uint32_t volume)=0
virtual int getPlayoutDevice(char device_id[kNERtcMaxDeviceIDLength])=0
virtual int setPlayoutDeviceMute(bool mute)=0
Definition: nertc_device_collection.h:24
namespace nertc
The interface header file of NERTC SDK device NERTC SDK device collection. All parameter descriptions...
NERtc SDK definitions.
#define kNERtcMaxDeviceIDLength
Definition: nertc_engine_defines.h:15