commit | 17342e5092430c3893246077aee3b727298df117 | [log] [tgz] |
---|---|---|
author | andrew@webrtc.org <andrew@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | Wed Feb 12 22:28:31 2014 +0000 |
committer | andrew@webrtc.org <andrew@webrtc.org@4adac7df-926f-26a2-2b94-8c16560cd09d> | Wed Feb 12 22:28:31 2014 +0000 |
tree | d35db1959c92d668652f0ce1a773c2e73d786a46 | |
parent | de782180b04adf606708a86567988fd64360aa3b [diff] [blame] |
Add a method to inform AudioProcessing that its output will be muted. R=turaj@webrtc.org Review URL: https://webrtc-codereview.appspot.com/8559004 git-svn-id: http://webrtc.googlecode.com/svn/trunk@5538 4adac7df-926f-26a2-2b94-8c16560cd09d
diff --git a/webrtc/modules/audio_processing/audio_processing_impl.cc b/webrtc/modules/audio_processing/audio_processing_impl.cc index 3ca90a7..fd2316c 100644 --- a/webrtc/modules/audio_processing/audio_processing_impl.cc +++ b/webrtc/modules/audio_processing/audio_processing_impl.cc
@@ -297,6 +297,14 @@ return num_output_channels_; } +void AudioProcessingImpl::set_output_will_be_muted(bool muted) { + output_will_be_muted_ = muted; +} + +bool AudioProcessingImpl::output_will_be_muted() const { + return output_will_be_muted_; +} + int AudioProcessingImpl::MaybeInitializeLocked(int sample_rate_hz, int num_input_channels, int num_output_channels, int num_reverse_channels) { if (sample_rate_hz == sample_rate_hz_ &&