Add SetAudioPlayout and SetAudioRecording methods to the PeerConnection AP (follow-up)
NOTRY=TRUE Bug: webrtc:7313 Change-Id: I43efb612144aa24069abf4cbe8c753137fb899f8 Reviewed-on: https://webrtc-review.googlesource.com/21301 Commit-Queue: Henrik Andreassson <henrika@webrtc.org> Reviewed-by: Fredrik Solenberg <solenberg@webrtc.org> Cr-Commit-Position: refs/heads/master@{#20625}
This commit is contained in:
parent
d2f37d85bd
commit
6d85252e9e
@ -12,7 +12,6 @@
|
||||
|
||||
#include "modules/audio_device/include/audio_device.h"
|
||||
#include "rtc_base/atomicops.h"
|
||||
#include "rtc_base/bind.h"
|
||||
#include "rtc_base/checks.h"
|
||||
#include "rtc_base/logging.h"
|
||||
#include "rtc_base/ptr_util.h"
|
||||
@ -82,6 +81,7 @@ void AudioState::SetPlayout(bool enabled) {
|
||||
null_audio_poller_ =
|
||||
rtc::MakeUnique<NullAudioPoller>(&audio_transport_proxy_);
|
||||
}
|
||||
voe->Release();
|
||||
}
|
||||
|
||||
void AudioState::SetRecording(bool enabled) {
|
||||
@ -94,6 +94,7 @@ void AudioState::SetRecording(bool enabled) {
|
||||
// remember the setting for when it receives subsequent calls of
|
||||
// StartPlayout.
|
||||
voe->SetRecording(enabled);
|
||||
voe->Release();
|
||||
}
|
||||
|
||||
// Reference count; implementation copied from rtc::RefCountedObject.
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user