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

Unified Diff: media/audio/android/opensles_output.cc

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
Index: media/audio/android/opensles_output.cc
diff --git a/media/audio/android/opensles_output.cc b/media/audio/android/opensles_output.cc
index d414ddc6203730704d73241f89c67ba064a35be9..647abca411751b025aec8928f90cf9725cf74e0e 100644
--- a/media/audio/android/opensles_output.cc
+++ b/media/audio/android/opensles_output.cc
@@ -6,6 +6,7 @@
#include "base/logging.h"
#include "base/macros.h"
+#include "base/time/time.h"
#include "base/trace_event/trace_event.h"
#include "media/audio/android/audio_manager_android.h"
@@ -336,7 +337,8 @@ void OpenSLESOutputStream::FillBufferQueueNoLock() {
DCHECK_GE(delay, 0);
// Read data from the registered client source.
- const int frames_filled = callback_->OnMoreData(audio_bus_.get(), delay, 0);
+ const int frames_filled =
+ callback_->OnMoreData(audio_bus_.get(), delay, base::TimeDelta(), 0);
if (frames_filled <= 0) {
// Audio source is shutting down, or halted on error.
return;
« no previous file with comments | « media/audio/alsa/alsa_output.cc ('k') | media/audio/audio_io.h » ('j') | media/audio/audio_io.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698