Mute/Unmute audio in cpp

26 views
Skip to first unread message

Pengyu Liao

unread,
Oct 18, 2017, 1:46:52 AM10/18/17
to discuss-webrtc
Hi, I want to mute/unmute the audio in cpp and then port to android through jni.

I was doing so:

audio_module_ = webrtc::AudioDeviceModule::Create(
        0, webrtc::AudioDeviceModule::kPlatformDefaultAudio);
audio_module_->Init();
...
audio_module_->SetMicrophoneMute(enable);

And then realize that it is not implemented yet: webrtc/modules/audio_device/android/audio_device_template.h

Is there a way to mute microphone in cpp and how to?

Thanks in advance.
Reply all
Reply to author
Forward
0 new messages