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

Unified Diff: content/renderer/media/renderer_webaudiodevice_impl.h

Issue 2708933005: Fix WebAudio support for discrete channel layouts. (Closed)
Patch Set: Zero session_id. Created 3 years, 10 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
« no previous file with comments | « no previous file | content/renderer/media/renderer_webaudiodevice_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/media/renderer_webaudiodevice_impl.h
diff --git a/content/renderer/media/renderer_webaudiodevice_impl.h b/content/renderer/media/renderer_webaudiodevice_impl.h
index e411ae3738198a585d80649fe4097125ea34d570..00dc5955bcc5e572c2dcb81355076f99fac92e19 100644
--- a/content/renderer/media/renderer_webaudiodevice_impl.h
+++ b/content/renderer/media/renderer_webaudiodevice_impl.h
@@ -35,6 +35,7 @@ class CONTENT_EXPORT RendererWebAudioDeviceImpl
static RendererWebAudioDeviceImpl* Create(
media::ChannelLayout layout,
+ int channels,
const blink::WebAudioLatencyHint& latency_hint,
blink::WebAudioDevice::RenderCallback* callback,
int session_id,
@@ -57,6 +58,10 @@ class CONTENT_EXPORT RendererWebAudioDeviceImpl
void SetMediaTaskRunnerForTesting(
const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner);
+ const media::AudioParameters& get_sink_params_for_testing() {
+ return sink_params_;
+ }
+
protected:
// Callback to get output device params (for tests).
using OutputDeviceParamsCallback = base::Callback<media::AudioParameters(
@@ -69,6 +74,7 @@ class CONTENT_EXPORT RendererWebAudioDeviceImpl
using RenderFrameIdCallback = base::Callback<int()>;
RendererWebAudioDeviceImpl(media::ChannelLayout layout,
+ int channels,
const blink::WebAudioLatencyHint& latency_hint,
blink::WebAudioDevice::RenderCallback* callback,
int session_id,
« no previous file with comments | « no previous file | content/renderer/media/renderer_webaudiodevice_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698