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

Unified Diff: media/audio/audio_input_device.cc

Issue 22886005: Switch audio synchronization from sleep() based to select() based. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments. Split out base/ changes. Created 7 years, 3 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/audio_input_device.cc
diff --git a/media/audio/audio_input_device.cc b/media/audio/audio_input_device.cc
index d7685840ecf0320dea700ac0e7945115840cc571..d1a6ab89f9f431bdd0d82b91a4a02497e590f9b0 100644
--- a/media/audio/audio_input_device.cc
+++ b/media/audio/audio_input_device.cc
@@ -138,10 +138,10 @@ void AudioInputDevice::OnStreamCreated(
return;
DCHECK(audio_thread_.IsStopped());
- audio_callback_.reset(
- new AudioInputDevice::AudioThreadCallback(
- audio_parameters_, handle, length, total_segments, callback_));
- audio_thread_.Start(audio_callback_.get(), socket_handle, "AudioInputDevice");
+ audio_callback_.reset(new AudioInputDevice::AudioThreadCallback(
+ audio_parameters_, handle, length, total_segments, callback_));
+ audio_thread_.Start(
+ audio_callback_.get(), socket_handle, "AudioInputDevice", false);
henrika (OOO until Aug 14) 2013/09/13 10:25:44 Do we want a TODO here to point out that we do thi
DaleCurtis 2013/10/22 23:13:49 I don't think that's necessary here. That documen
state_ = RECORDING;
ipc_->RecordStream();

Powered by Google App Engine
This is Rietveld 408576698