30195a437b
Closes https://github.com/dart-lang/sdk/issues/47520 decodeAudioData has an older callback-based syntax and newer Promise-based syntax. In order to be consistent with the method signature as well as be able to use both syntaxes, this CL provides an API that can handle both. Change-Id: I875defcfec9e429496a1ac9866f1b53d204eff69 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/221744 Reviewed-by: Riley Porter <rileyporter@google.com> Reviewed-by: Sigmund Cherem <sigmund@google.com> Commit-Queue: Srujan Gaddam <srujzs@google.com>