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

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

Issue 2060833002: Implementation of 'AudioContext.getOutputTimestamp' method (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added implementation for ALSA. 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..7184158f4d9bf899739aa87dfe5482e9c4897726 100644
--- a/media/audio/sounds/audio_stream_handler.cc
+++ b/media/audio/sounds/audio_stream_handler.cc
@@ -111,7 +111,8 @@ class AudioStreamHandler::AudioStreamContainer
// Following methods could be called from *ANY* thread.
int OnMoreData(AudioBus* dest,
uint32_t /* total_bytes_delay */,
- uint32_t /* frames_skipped */) override {
+ uint32_t /* frames_skipped */,
+ const AudioTimestamp& /* timestamp */) override {
base::AutoLock al(state_lock_);
size_t bytes_written = 0;

Powered by Google App Engine
This is Rietveld 408576698