OfflineAudioContext constructor
OfflineAudioContext(- dynamic numberOfChannels_OR_options,
- [int? numberOfFrames,
- num? sampleRate]
)
Implementation
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");
}