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

Unified Diff: trunk/src/media/cast/test/receiver.cc

Issue 487543002: Revert 290359 "Remove AudioBuffersState class." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 4 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 | « trunk/src/media/audio/win/waveout_output_win.cc ('k') | trunk/src/media/cast/test/utility/audio_utility.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/media/cast/test/receiver.cc
===================================================================
--- trunk/src/media/cast/test/receiver.cc (revision 290375)
+++ trunk/src/media/cast/test/receiver.cc (working copy)
@@ -316,7 +316,7 @@
////////////////////////////////////////////////////////////////////
// AudioSourceCallback implementation.
- virtual int OnMoreData(AudioBus* dest, int total_bytes_delay)
+ virtual int OnMoreData(AudioBus* dest, AudioBuffersState buffers_state)
OVERRIDE {
// Note: This method is being invoked by a separate thread unknown to us
// (i.e., outside of CastEnvironment).
@@ -329,8 +329,8 @@
base::AutoLock auto_lock(audio_lock_);
// Prune the queue, skipping entries that are too old.
- // TODO(miu): Use |total_bytes_delay| to account for audio buffering
- // delays upstream.
+ // TODO(miu): Use |buffers_state| to account for audio buffering delays
+ // upstream.
const base::TimeTicks earliest_time_to_play =
cast_env()->Clock()->NowTicks() - max_frame_age_;
while (!audio_playout_queue_.empty() &&
« no previous file with comments | « trunk/src/media/audio/win/waveout_output_win.cc ('k') | trunk/src/media/cast/test/utility/audio_utility.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698