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

Unified Diff: media/audio/audio_output_controller.cc

Issue 10054011: Send kStopMark from AudioOutputController to stop AudioThread in renderer (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1025/src/
Patch Set: Created 8 years, 8 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
« no previous file with comments | « media/audio/audio_output_controller.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_controller.cc
===================================================================
--- media/audio/audio_output_controller.cc (revision 131586)
+++ media/audio/audio_output_controller.cc (working copy)
@@ -16,8 +16,9 @@
namespace media {
-// Signal a pause in low-latency mode.
+// Special signals to send to the renderer in low-latency mode.
const int AudioOutputController::kPauseMark = -1;
+const int AudioOutputController::kStopMark = -2;
// Polling-related constants.
const int AudioOutputController::kPollNumAttempts = 3;
@@ -303,6 +304,7 @@
DoStopCloseAndClearStream(NULL);
if (LowLatencyMode()) {
+ sync_reader_->UpdatePendingBytes(kStopMark);
sync_reader_->Close();
}
« no previous file with comments | « media/audio/audio_output_controller.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698