Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1152)

Unified Diff: media/audio/mac/audio_input_mac.cc

Issue 16286010: Removed the IsRecordingInProcess check for speech since it is not needed (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/audio/mac/audio_input_mac.cc
diff --git a/media/audio/mac/audio_input_mac.cc b/media/audio/mac/audio_input_mac.cc
index 514b0215f15d0f979c3f8f1739e3d0aa65565078..c2a3696230683f7a24f336691b16698bd4735ab3 100644
--- a/media/audio/mac/audio_input_mac.cc
+++ b/media/audio/mac/audio_input_mac.cc
@@ -73,7 +73,6 @@ void PCMQueueInAudioInputStream::Start(AudioInputCallback* callback) {
HandleError(err);
} else {
started_ = true;
- manager_->IncreaseActiveInputStreamCount();
}
}
@@ -81,10 +80,6 @@ void PCMQueueInAudioInputStream::Stop() {
if (!audio_queue_ || !started_)
return;
- // Stop is always called before Close. In case of error, this will be
- // also called when closing the input controller.
- manager_->DecreaseActiveInputStreamCount();
-
// We request a synchronous stop, so the next call can take some time. In
// the windows implementation we block here as well.
OSStatus err = AudioQueueStop(audio_queue_, true);

Powered by Google App Engine
This is Rietveld 408576698