| Index: Source/modules/webaudio/ScriptProcessorNode.cpp
|
| diff --git a/Source/modules/webaudio/ScriptProcessorNode.cpp b/Source/modules/webaudio/ScriptProcessorNode.cpp
|
| index d425ae890aafa46f398205c386ede83dc41883f6..73d57115bafcfc6df97c55d82107c37684ded1e0 100644
|
| --- a/Source/modules/webaudio/ScriptProcessorNode.cpp
|
| +++ b/Source/modules/webaudio/ScriptProcessorNode.cpp
|
| @@ -73,17 +73,17 @@ ScriptProcessorNode* ScriptProcessorNode::create(AudioContext* context, float sa
|
| case 16384:
|
| break;
|
| default:
|
| - return 0;
|
| + return nullptr;
|
| }
|
|
|
| if (!numberOfInputChannels && !numberOfOutputChannels)
|
| - return 0;
|
| + return nullptr;
|
|
|
| if (numberOfInputChannels > AudioContext::maxNumberOfChannels())
|
| - return 0;
|
| + return nullptr;
|
|
|
| if (numberOfOutputChannels > AudioContext::maxNumberOfChannels())
|
| - return 0;
|
| + return nullptr;
|
|
|
| return new ScriptProcessorNode(context, sampleRate, bufferSize, numberOfInputChannels, numberOfOutputChannels);
|
| }
|
|
|