createScriptProcessor method

ScriptProcessorNode createScriptProcessor([int bufferSize, int numberOfInputChannels, int numberOfOutputChannels ])

Source

ScriptProcessorNode createScriptProcessor(
    [int bufferSize, int numberOfInputChannels, int numberOfOutputChannels]) {
  if (numberOfOutputChannels != null) {
    return _blink.BlinkAudioContext.instance
        .createScriptProcessor_Callback_3_(
            this, bufferSize, numberOfInputChannels, numberOfOutputChannels);
  }
  if (numberOfInputChannels != null) {
    return _blink.BlinkAudioContext.instance
        .createScriptProcessor_Callback_2_(
            this, bufferSize, numberOfInputChannels);
  }
  if (bufferSize != null) {
    return _blink.BlinkAudioContext.instance
        .createScriptProcessor_Callback_1_(this, bufferSize);
  }
  return _blink.BlinkAudioContext.instance
      .createScriptProcessor_Callback_0_(this);
}

© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dartlang.org/stable/1.24.3/dart-web_audio/AudioContext/createScriptProcessor.html