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

Unified Diff: media/audio/mac/audio_auhal_mac.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/mac/audio_auhal_mac.cc
diff --git a/media/audio/mac/audio_auhal_mac.cc b/media/audio/mac/audio_auhal_mac.cc
index c9134023924e8b74ecffd7346b304d0dccd64f96..912d15e6639ff19a23f6d896ccf12044516bc752 100644
--- a/media/audio/mac/audio_auhal_mac.cc
+++ b/media/audio/mac/audio_auhal_mac.cc
@@ -6,6 +6,8 @@
#include <CoreServices/CoreServices.h>
+#include <string>
+
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/logging.h"
@@ -261,7 +263,7 @@ void AUHALStream::ProvideInput(int frame_delay, AudioBus* dest) {
// Supply the input data and render the output data.
source_->OnMoreData(dest, current_hardware_pending_bytes_ +
frame_delay * params_.GetBytesPerFrame(),
- current_lost_frames_);
+ base::TimeDelta(), current_lost_frames_);
dest->Scale(volume_);
current_lost_frames_ = 0;
}

Powered by Google App Engine
This is Rietveld 408576698