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

Unified Diff: media/audio/audio_output_controller.cc

Issue 481193003: Remove AudioBuffersState usage in Chromium (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove AudioBufferState since ledger code is no longer built in Chrome. Created 6 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
« no previous file with comments | « media/audio/audio_output_controller.h ('k') | media/audio/audio_output_controller_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_output_controller.cc
diff --git a/media/audio/audio_output_controller.cc b/media/audio/audio_output_controller.cc
index 45d308db3effd64f12394570200c1f90b515ea4f..c793cd06f864fe55c382312dfe4f32e85f08d893 100644
--- a/media/audio/audio_output_controller.cc
+++ b/media/audio/audio_output_controller.cc
@@ -280,7 +280,7 @@ void AudioOutputController::DoReportError() {
}
int AudioOutputController::OnMoreData(AudioBus* dest,
- AudioBuffersState buffers_state) {
+ int total_bytes_delay) {
palmer 2014/09/18 18:39:40 void AudioSyncReader::UpdatePendingBytes(uint32 by
acolwell GONE FROM CHROMIUM 2014/09/19 17:16:46 Done.
TRACE_EVENT0("audio", "AudioOutputController::OnMoreData");
// Indicate that we haven't wedged (at least not indefinitely, WedgeCheck()
@@ -294,7 +294,7 @@ int AudioOutputController::OnMoreData(AudioBus* dest,
const int frames = dest->frames();
sync_reader_->UpdatePendingBytes(
- buffers_state.total_bytes() + frames * params_.GetBytesPerFrame());
+ total_bytes_delay + frames * params_.GetBytesPerFrame());
palmer 2014/09/18 18:39:40 I see this: // media::AudioOutputController::Sync
acolwell GONE FROM CHROMIUM 2014/09/19 17:16:46 The receiver of this value is in AudioDeviceThread
if (will_monitor_audio_levels())
power_monitor_.Scan(*dest, frames);
« no previous file with comments | « media/audio/audio_output_controller.h ('k') | media/audio/audio_output_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698