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

Unified Diff: media/audio/sounds/audio_stream_handler.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 | « media/audio/simple_sources_unittest.cc ('k') | media/audio/virtual_audio_input_stream_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ee273129debac07ada1394ae8e7b617e8d7ddd67..85ee6533a121e9db95272d6e75763ebb5fbae39f 100644
--- a/media/audio/sounds/audio_stream_handler.cc
+++ b/media/audio/sounds/audio_stream_handler.cc
@@ -106,7 +106,9 @@ class AudioStreamHandler::AudioStreamContainer
private:
// AudioOutputStream::AudioSourceCallback overrides:
// Following methods could be called from *ANY* thread.
- int OnMoreData(AudioBus* dest, uint32 /* total_bytes_delay */) override {
+ int OnMoreData(AudioBus* dest,
+ uint32_t /* total_bytes_delay */,
+ uint32_t /* frames_skipped */) override {
base::AutoLock al(state_lock_);
size_t bytes_written = 0;
« no previous file with comments | « media/audio/simple_sources_unittest.cc ('k') | media/audio/virtual_audio_input_stream_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698