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

Unified Diff: media/audio/alsa/alsa_output.h

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/alsa/alsa_output.h
diff --git a/media/audio/alsa/alsa_output.h b/media/audio/alsa/alsa_output.h
index 0a7b861b3e218b161cc5c97225e12e864b990b25..132e160cc0d17afbb779df34f735f2f946af7225 100644
--- a/media/audio/alsa/alsa_output.h
+++ b/media/audio/alsa/alsa_output.h
@@ -206,6 +206,9 @@ class MEDIA_EXPORT AlsaPcmOutputStream : public AudioOutputStream {
InternalState state_;
float volume_; // Volume level from 0.0 to 1.0.
+ // Total amount of the frames written from the playback start.
+ snd_pcm_sframes_t elapsed_written_frames_;
+
AudioSourceCallback* source_callback_;
// Container for retrieving data from AudioSourceCallback::OnMoreData().

Powered by Google App Engine
This is Rietveld 408576698