| Index: third_party/WebKit/Source/modules/webaudio/AudioNode.h
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/AudioNode.h b/third_party/WebKit/Source/modules/webaudio/AudioNode.h
|
| index a5b08f577b7bbd121eba7cba0aad1d24c515fdce..b73a1160e02a90272a1ca655e47d9c83b6a7a7c6 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/AudioNode.h
|
| +++ b/third_party/WebKit/Source/modules/webaudio/AudioNode.h
|
| @@ -266,10 +266,17 @@ private:
|
| static int s_nodeCount[NodeTypeEnd];
|
| #endif
|
|
|
| -protected:
|
| - unsigned m_channelCount;
|
| ChannelCountMode m_channelCountMode;
|
| AudioBus::ChannelInterpretation m_channelInterpretation;
|
| +
|
| +protected:
|
| + // Set the (internal) channelCountMode and channelInterpretation
|
| + // accordingly. Use this in the node constructors to set the internal state
|
| + // correctly if the node uses values different from the defaults.
|
| + void setInternalChannelCountMode(ChannelCountMode);
|
| + void setInternalChannelInterpretation(AudioBus::ChannelInterpretation);
|
| +
|
| + unsigned m_channelCount;
|
| // The new channel count mode that will be used to set the actual mode in the pre or post
|
| // rendering phase.
|
| ChannelCountMode m_newChannelCountMode;
|
|
|