NERtc Windows SDK  V4.6.53
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 {
31 {
32 protected:
33  virtual ~IAudioDeviceManager() {}
34 
35 public:
94  virtual int setRecordDevice(const char device_id[kNERtcMaxDeviceIDLength]) = 0;
111  virtual int getRecordDevice(char device_id[kNERtcMaxDeviceIDLength]) = 0;
171  virtual int setPlayoutDevice(const char device_id[kNERtcMaxDeviceIDLength]) = 0;
188  virtual int getPlayoutDevice(char device_id[kNERtcMaxDeviceIDLength]) = 0;
189 
206  virtual int setRecordDeviceVolume(uint32_t volume) = 0;
223  virtual int getRecordDeviceVolume(uint32_t* volume) = 0;
240  virtual int setPlayoutDeviceVolume(uint32_t volume) = 0;
257  virtual int getPlayoutDeviceVolume(uint32_t* volume) = 0;
258 
302  virtual int setPlayoutDeviceMute(bool mute) = 0;
303 
324  virtual int getPlayoutDeviceMute(bool *mute) = 0;
373  virtual int setRecordDeviceMute(bool mute) = 0;
374 
395  virtual int getRecordDeviceMute(bool *mute) = 0;
396 
442  virtual int adjustRecordingSignalVolume(uint32_t volume) = 0;
443 
487  virtual int adjustPlaybackSignalVolume(uint32_t volume) = 0;
488 
515  virtual int startRecordDeviceTest(uint64_t indication_interval) = 0;
538  virtual int stopRecordDeviceTest() = 0;
567  virtual int startPlayoutDeviceTest(const char *test_audio_file_path) = 0;
588  virtual int stopPlayoutDeviceTest() = 0;
615  virtual int startAudioDeviceLoopbackTest(uint64_t indication_interval) = 0;
636  virtual int stopAudioDeviceLoopbackTest() = 0;
637 };
638 } //namespace nertc
639 
640 #endif
Definition: nertc_audio_device_manager.h:31
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:32
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:61