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

Unified Diff: media/audio/simple_sources.h

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/pulse/pulse_output.cc ('k') | media/audio/simple_sources.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/simple_sources.h
diff --git a/media/audio/simple_sources.h b/media/audio/simple_sources.h
index 7a10a342032066880cb7a6bb14618a789eccd983..075b4a7c7698a6d217da5cf942a5d1e8adff2b8f 100644
--- a/media/audio/simple_sources.h
+++ b/media/audio/simple_sources.h
@@ -31,7 +31,9 @@ class MEDIA_EXPORT SineWaveAudioSource
void Reset();
// Implementation of AudioSourceCallback.
- int OnMoreData(AudioBus* audio_bus, uint32 total_bytes_delay) override;
+ int OnMoreData(AudioBus* audio_bus,
+ uint32_t total_bytes_delay,
+ uint32_t frames_skipped) override;
void OnError(AudioOutputStream* stream) override;
// The number of OnMoreData() and OnError() calls respectively.
@@ -56,7 +58,9 @@ class MEDIA_EXPORT FileSource : public AudioOutputStream::AudioSourceCallback,
~FileSource() override;
// Implementation of AudioSourceCallback.
- int OnMoreData(AudioBus* audio_bus, uint32 total_bytes_delay) override;
+ int OnMoreData(AudioBus* audio_bus,
+ uint32_t total_bytes_delay,
+ uint32_t frames_skipped) override;
void OnError(AudioOutputStream* stream) override;
private:
@@ -87,7 +91,9 @@ class BeepingSource : public AudioOutputStream::AudioSourceCallback {
~BeepingSource() override;
// Implementation of AudioSourceCallback.
- int OnMoreData(AudioBus* audio_bus, uint32 total_bytes_delay) override;
+ int OnMoreData(AudioBus* audio_bus,
+ uint32_t total_bytes_delay,
+ uint32_t frames_skipped) override;
void OnError(AudioOutputStream* stream) override;
static void BeepOnce();
« no previous file with comments | « media/audio/pulse/pulse_output.cc ('k') | media/audio/simple_sources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698