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

Unified Diff: media/audio/audio_io.h

Issue 2101303004: Pass delay and timestamp to AudioSourceCallback::OnMoreData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « media/audio/android/opensles_output.cc ('k') | media/audio/audio_output_controller.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/audio_io.h
diff --git a/media/audio/audio_io.h b/media/audio/audio_io.h
index 66ff3f2dc98cf7af2324fa1cb58944e29c003342..3c423924f4a5a73e3c265539d7a18fe4b7b1f507 100644
--- a/media/audio/audio_io.h
+++ b/media/audio/audio_io.h
@@ -7,6 +7,7 @@
#include <stdint.h>
+#include "base/time/time.h"
#include "media/base/audio_bus.h"
// Low-level audio output support. To make sound there are 3 objects involved:
@@ -65,6 +66,7 @@ class MEDIA_EXPORT AudioOutputStream {
// |frames_skipped| contains the number of frames skipped by the consumer.
virtual int OnMoreData(AudioBus* dest,
uint32_t total_bytes_delay,
+ base::TimeDelta delay_timestamp,
alokp 2016/06/30 23:37:39 please add comments
jameswest 2016/07/01 00:08:45 Done.
uint32_t frames_skipped) = 0;
// There was an error while playing a buffer. Audio source cannot be
@@ -114,14 +116,14 @@ class MEDIA_EXPORT AudioInputStream {
virtual void OnData(AudioInputStream* stream,
const AudioBus* source,
uint32_t hardware_delay_bytes,
- double volume){};
+ double volume) {}
// TODO(henrika): don't use; to be removed.
virtual void OnData(AudioInputStream* stream,
const uint8_t* src,
uint32_t size,
uint32_t hardware_delay_bytes,
- double volume){};
+ double volume) {}
// There was an error while recording audio. The audio sink cannot be
// destroyed yet. No direct action needed by the AudioInputStream, but it
« no previous file with comments | « media/audio/android/opensles_output.cc ('k') | media/audio/audio_output_controller.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698