Index: media/audio/audio_manager_base.cc |
diff --git a/media/audio/audio_manager_base.cc b/media/audio/audio_manager_base.cc |
index d669376db5599571e3632f375df5a8d32d3e78c3..cdc555f4f95a55d000e5d59c6a211db83dafc561 100644 |
--- a/media/audio/audio_manager_base.cc |
+++ b/media/audio/audio_manager_base.cc |
@@ -74,8 +74,7 @@ class AudioManagerBase::CompareByParams { |
}; |
AudioManagerBase::AudioManagerBase() |
- : num_active_input_streams_(0), |
- max_num_output_streams_(kDefaultMaxOutputStreams), |
+ : max_num_output_streams_(kDefaultMaxOutputStreams), |
max_num_input_streams_(kDefaultMaxInputStreams), |
num_output_streams_(0), |
num_input_streams_(0), |
@@ -311,19 +310,6 @@ void AudioManagerBase::ReleaseInputStream(AudioInputStream* stream) { |
delete stream; |
} |
-void AudioManagerBase::IncreaseActiveInputStreamCount() { |
- base::AtomicRefCountInc(&num_active_input_streams_); |
-} |
- |
-void AudioManagerBase::DecreaseActiveInputStreamCount() { |
- DCHECK(IsRecordingInProcess()); |
- base::AtomicRefCountDec(&num_active_input_streams_); |
-} |
- |
-bool AudioManagerBase::IsRecordingInProcess() { |
- return !base::AtomicRefCountIsZero(&num_active_input_streams_); |
-} |
- |
void AudioManagerBase::Shutdown() { |
// To avoid running into deadlocks while we stop the thread, shut it down |
// via a local variable while not holding the audio thread lock. |