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

Unified Diff: media/audio/fake_audio_output_stream.cc

Issue 2101303004: Pass delay and timestamp to AudioSourceCallback::OnMoreData. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Fix Mac CQ errors. Created 4 years, 3 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/fake_audio_output_stream.cc
diff --git a/media/audio/fake_audio_output_stream.cc b/media/audio/fake_audio_output_stream.cc
index d91d52554367b09a49ca322d3d4e6add8292e2b5..6702303283834f74a0fa77792774729996e92c43 100644
--- a/media/audio/fake_audio_output_stream.cc
+++ b/media/audio/fake_audio_output_stream.cc
@@ -8,6 +8,7 @@
#include "base/bind_helpers.h"
#include "base/logging.h"
#include "base/single_thread_task_runner.h"
+#include "base/time/time.h"
#include "media/audio/audio_manager_base.h"
namespace media {
@@ -55,15 +56,16 @@ void FakeAudioOutputStream::Close() {
audio_manager_->ReleaseOutputStream(this);
}
-void FakeAudioOutputStream::SetVolume(double volume) {};
+void FakeAudioOutputStream::SetVolume(double volume) {}
void FakeAudioOutputStream::GetVolume(double* volume) {
*volume = 0;
-};
+}
void FakeAudioOutputStream::CallOnMoreData() {
DCHECK(audio_manager_->GetWorkerTaskRunner()->BelongsToCurrentThread());
- callback_->OnMoreData(audio_bus_.get(), 0, 0);
+ callback_->OnMoreData(base::TimeDelta(), base::TimeTicks::Now(), 0,
+ audio_bus_.get());
}
} // namespace media

Powered by Google App Engine
This is Rietveld 408576698