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

Unified Diff: media/renderers/audio_renderer_impl.cc

Issue 2067863003: Mixing audio with different latency requirements (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixing bot redness 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/renderers/audio_renderer_impl.cc
diff --git a/media/renderers/audio_renderer_impl.cc b/media/renderers/audio_renderer_impl.cc
index f0524cc1a50800974aa6f675b265e7f7b4a91c74..bc548815502a9ffc3faf04533f596b9f826be16c 100644
--- a/media/renderers/audio_renderer_impl.cc
+++ b/media/renderers/audio_renderer_impl.cc
@@ -20,7 +20,7 @@
#include "build/build_config.h"
#include "media/base/audio_buffer.h"
#include "media/base/audio_buffer_converter.h"
-#include "media/base/audio_hardware_config.h"
+#include "media/base/audio_latency.h"
#include "media/base/audio_splicer.h"
#include "media/base/bind_to_current_loop.h"
#include "media/base/demuxer_stream.h"
@@ -442,7 +442,7 @@ void AudioRendererImpl::Initialize(DemuxerStream* stream,
audio_parameters_.Reset(hw_params.format(), renderer_channel_layout,
sample_rate, hw_params.bits_per_sample(),
- AudioHardwareConfig::GetHighLatencyBufferSize(
+ media::AudioLatency::GetHighLatencyBufferSize(
sample_rate, preferred_buffer_size));
}

Powered by Google App Engine
This is Rietveld 408576698