factory OfflineAudioContext(numberOfChannels_OR_options,
[int numberOfFrames, num sampleRate]) {
if ((sampleRate is num) &&
(numberOfFrames is int) &&
(numberOfChannels_OR_options is int)) {
return OfflineAudioContext._create_1(
numberOfChannels_OR_options, numberOfFrames, sampleRate);
}
if ((numberOfChannels_OR_options is Map) &&
numberOfFrames == null &&
sampleRate == null) {
var options_1 =
convertDartToNative_Dictionary(numberOfChannels_OR_options);
return OfflineAudioContext._create_2(options_1);
}
throw new ArgumentError("Incorrect number or type of arguments");
}
© 2012 the Dart project authors
Licensed under the Creative Commons Attribution-ShareAlike License v4.0.
https://api.dart.dev/stable/2.5.0/dart-web_audio/OfflineAudioContext/OfflineAudioContext.html