NERtc Linux SDK  V4.4.9
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:
70  virtual int setRecordDevice(const char device_id[kNERtcMaxDeviceIDLength]) = 0;
87  virtual int getRecordDevice(char device_id[kNERtcMaxDeviceIDLength]) = 0;
123  virtual int setPlayoutDevice(const char device_id[kNERtcMaxDeviceIDLength]) = 0;
140  virtual int getPlayoutDevice(char device_id[kNERtcMaxDeviceIDLength]) = 0;
141 
158  virtual int setRecordDeviceVolume(uint32_t volume) = 0;
175  virtual int getRecordDeviceVolume(uint32_t* volume) = 0;
192  virtual int setPlayoutDeviceVolume(uint32_t volume) = 0;
209  virtual int getPlayoutDeviceVolume(uint32_t* volume) = 0;
210 
231  virtual int setPlayoutDeviceMute(bool mute) = 0;
232 
253  virtual int getPlayoutDeviceMute(bool *mute) = 0;
274  virtual int setRecordDeviceMute(bool mute) = 0;
275 
296  virtual int getRecordDeviceMute(bool *mute) = 0;
297 
322  virtual int adjustRecordingSignalVolume(uint32_t volume) = 0;
323 
348  virtual int adjustPlaybackSignalVolume(uint32_t volume) = 0;
349 
376  virtual int startRecordDeviceTest(uint64_t indication_interval) = 0;
399  virtual int stopRecordDeviceTest() = 0;
428  virtual int startPlayoutDeviceTest(const char *test_audio_file_path) = 0;
450  virtual int stopPlayoutDeviceTest() = 0;
478  virtual int startAudioDeviceLoopbackTest(uint64_t indication_interval) = 0;
500  virtual int stopAudioDeviceLoopbackTest() = 0;
501 };
502 } //namespace nertc
503 
504 #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:54