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

Unified Diff: media/renderers/audio_renderer_impl.cc

Issue 2471733004: Revert of Make more media APIs aware of |delay| and |delay_timestamp| (Closed)
Patch Set: Created 4 years, 1 month 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/renderers/audio_renderer_impl.h ('k') | media/renderers/audio_renderer_impl_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/renderers/audio_renderer_impl.cc
diff --git a/media/renderers/audio_renderer_impl.cc b/media/renderers/audio_renderer_impl.cc
index bd8414d12ad8deb00cc690c687d5959fe13bf574..66fe2b79609856ac85bd7896754f36f3920aa48c 100644
--- a/media/renderers/audio_renderer_impl.cc
+++ b/media/renderers/audio_renderer_impl.cc
@@ -769,22 +769,18 @@
(buffer->timestamp() + buffer->duration()) < start_timestamp_;
}
-int AudioRendererImpl::Render(base::TimeDelta delay,
- base::TimeTicks delay_timestamp,
- int prior_frames_skipped,
- AudioBus* audio_bus) {
+int AudioRendererImpl::Render(AudioBus* audio_bus,
+ uint32_t frames_delayed,
+ uint32_t frames_skipped) {
const int frames_requested = audio_bus->frames();
- DVLOG(4) << __func__ << " delay:" << delay
- << " prior_frames_skipped:" << prior_frames_skipped
+ DVLOG(4) << __func__ << " frames_delayed:" << frames_delayed
+ << " frames_skipped:" << frames_skipped
<< " frames_requested:" << frames_requested;
int frames_written = 0;
{
base::AutoLock auto_lock(lock_);
last_render_time_ = tick_clock_->NowTicks();
-
- int64_t frames_delayed = AudioTimestampHelper::TimeToFrames(
- delay, audio_parameters_.sample_rate());
if (!stop_rendering_time_.is_null()) {
audio_clock_->CompensateForSuspendedWrites(
« no previous file with comments | « media/renderers/audio_renderer_impl.h ('k') | media/renderers/audio_renderer_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698