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

Unified Diff: media/audio/audio_output_stream_sink.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/audio_output_stream_sink.cc
diff --git a/media/audio/audio_output_stream_sink.cc b/media/audio/audio_output_stream_sink.cc
index b94e2d265847d33f2a93cab9dc3e8a90a7cbd140..73dd9f775c3fce45d1fd9138b073512006ef6cc6 100644
--- a/media/audio/audio_output_stream_sink.cc
+++ b/media/audio/audio_output_stream_sink.cc
@@ -84,7 +84,8 @@ bool AudioOutputStreamSink::CurrentThreadIsRenderingThread() {
int AudioOutputStreamSink::OnMoreData(AudioBus* dest,
uint32_t total_bytes_delay,
- uint32_t frames_skipped) {
+ uint32_t frames_skipped,
+ const AudioTimestamp& timestamp) {
// Note: Runs on the audio thread created by the OS.
base::AutoLock al(callback_lock_);
if (!active_render_callback_)
@@ -93,7 +94,8 @@ int AudioOutputStreamSink::OnMoreData(AudioBus* dest,
uint32_t frames_delayed = std::round(static_cast<double>(total_bytes_delay) /
active_params_.GetBytesPerFrame());
- return active_render_callback_->Render(dest, frames_delayed, frames_skipped);
+ return active_render_callback_->Render(dest, frames_delayed, frames_skipped,
+ timestamp);
}
void AudioOutputStreamSink::OnError(AudioOutputStream* stream) {

Powered by Google App Engine
This is Rietveld 408576698