Repo created
This commit is contained in:
parent
81b91f4139
commit
f8c34fa5ee
22732 changed files with 4815320 additions and 2 deletions
|
|
@ -0,0 +1,31 @@
|
|||
|
||||
#ifndef TGCALLS_AUDIO_DEVICE_MODULE_MACOS
|
||||
#define TGCALLS_AUDIO_DEVICE_MODULE_MACOS
|
||||
|
||||
#include "platform/PlatformInterface.h"
|
||||
|
||||
namespace tgcalls {
|
||||
|
||||
class AudioDeviceModuleMacos : public DefaultWrappedAudioDeviceModule {
|
||||
public:
|
||||
AudioDeviceModuleMacos(webrtc::scoped_refptr<webrtc::AudioDeviceModule> impl) :
|
||||
DefaultWrappedAudioDeviceModule(impl) {
|
||||
}
|
||||
|
||||
virtual ~AudioDeviceModuleMacos() {
|
||||
}
|
||||
virtual int32_t SetStereoPlayout(bool enable) override {
|
||||
return WrappedInstance()->SetStereoPlayout(enable);
|
||||
}
|
||||
|
||||
|
||||
virtual void Stop() override {
|
||||
WrappedInstance()->StopPlayout();
|
||||
WrappedInstance()->StopRecording();
|
||||
WrappedInstance()->Terminate();
|
||||
}
|
||||
};
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue