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

Unified Diff: third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.h

Issue 1464673002: Support multichannel audio stream more than 2 in MediaStreamDestinationNode (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed intdentation Created 5 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
Index: third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.h
diff --git a/third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.h b/third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.h
index f8bd9fe773706db49db2226bf0ffcc8bf2f56696..292c09a70b1f6d7075176046363e4ea55fb7891d 100644
--- a/third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/MediaStreamAudioDestinationNode.h
@@ -46,6 +46,9 @@ public:
// AudioHandler.
void process(size_t framesToProcess) override;
+ void setChannelCount(unsigned long, ExceptionState&) override;
+
+ unsigned long maxChannelCount() const;
private:
MediaStreamAudioDestinationHandler(AudioNode&, size_t numberOfChannels);
@@ -55,6 +58,9 @@ private:
// This Persistent doesn't make a reference cycle.
Persistent<MediaStream> m_stream;
Persistent<MediaStreamSource> m_source;
+
+ // This internal mix bus is for up/down mixing the input to the actual
+ // number of channels in the destination.
RefPtr<AudioBus> m_mixBus;
};

Powered by Google App Engine
This is Rietveld 408576698