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

Unified Diff: trunk/src/media/audio/win/waveout_output_win.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/audio_output_win_unittest.cc ('k') | trunk/src/media/cast/test/receiver.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/media/audio/win/waveout_output_win.cc
===================================================================
--- trunk/src/media/audio/win/waveout_output_win.cc (revision 290375)
+++ trunk/src/media/audio/win/waveout_output_win.cc (working copy)
@@ -325,10 +325,9 @@
// return to us how many bytes were used.
// TODO(fbarchard): Handle used 0 by queueing more.
- // TODO(sergeyu): Specify correct hardware delay for |total_delay_bytes|.
- int total_delay_bytes = pending_bytes_;
+ // TODO(sergeyu): Specify correct hardware delay for AudioBuffersState.
int frames_filled = callback_->OnMoreData(
- audio_bus_.get(), total_delay_bytes);
+ audio_bus_.get(), AudioBuffersState(pending_bytes_, 0));
uint32 used = frames_filled * audio_bus_->channels() *
format_.Format.wBitsPerSample / 8;
« no previous file with comments | « trunk/src/media/audio/win/audio_output_win_unittest.cc ('k') | trunk/src/media/cast/test/receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698