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

Unified Diff: chromecast/media/audio/cast_audio_output_stream.cc

Issue 1538563002: Forward the number of skipped frames by the OS in audio playout. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code review fix. git cl format. Rebase. Created 5 years 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 | « no previous file | chromecast/media/audio/cast_audio_output_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chromecast/media/audio/cast_audio_output_stream.cc
diff --git a/chromecast/media/audio/cast_audio_output_stream.cc b/chromecast/media/audio/cast_audio_output_stream.cc
index d6fab420597de523834e6e13933e8a189568962a..6dac3381a1e5ea76f54694c783b42219665524ff 100644
--- a/chromecast/media/audio/cast_audio_output_stream.cc
+++ b/chromecast/media/audio/cast_audio_output_stream.cc
@@ -331,7 +331,8 @@ void CastAudioOutputStream::PushBuffer() {
std::max(base::TimeDelta(), next_push_time_ - now);
uint32_t bytes_delay = queue_delay.InMicroseconds() *
audio_params_.GetBytesPerSecond() / 1000000;
- int frame_count = source_callback_->OnMoreData(audio_bus_.get(), bytes_delay);
+ int frame_count =
+ source_callback_->OnMoreData(audio_bus_.get(), bytes_delay, 0);
VLOG(3) << "frames_filled=" << frame_count << " with latency=" << bytes_delay;
DCHECK_EQ(frame_count, audio_bus_->frames());
« no previous file with comments | « no previous file | chromecast/media/audio/cast_audio_output_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698