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

Unified Diff: media/audio/sounds/audio_stream_handler.cc

Issue 2101303004: Pass delay and timestamp to AudioSourceCallback::OnMoreData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Pass target playout time to AudioSourceCallback::OnMoreData. Created 4 years, 5 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/sounds/audio_stream_handler.cc
diff --git a/media/audio/sounds/audio_stream_handler.cc b/media/audio/sounds/audio_stream_handler.cc
index 74f7d70fc47e0c0e1acbaa4a51264b3e1a4044bf..ee9926a96028cd09e19958fa388c1cb1e0f8a78b 100644
--- a/media/audio/sounds/audio_stream_handler.cc
+++ b/media/audio/sounds/audio_stream_handler.cc
@@ -109,9 +109,9 @@ class AudioStreamHandler::AudioStreamContainer
private:
// AudioOutputStream::AudioSourceCallback overrides:
// Following methods could be called from *ANY* thread.
- int OnMoreData(AudioBus* dest,
- uint32_t /* total_bytes_delay */,
- uint32_t /* frames_skipped */) override {
+ int OnMoreData(base::TimeTicks /* target_playout_time */,
+ int /* prior_frames_skipped */,
+ AudioBus* dest) override {
base::AutoLock al(state_lock_);
size_t bytes_written = 0;

Powered by Google App Engine
This is Rietveld 408576698