createAudioDecoder method
Future<PlatformAudioDecoder?>
createAudioDecoder(
- AudioDecoderConfig config, {
- BackendContext? context,
override
Construct an audio decoder. Default implementation returns null —
backends without audio support don't need to override.
Implementation
@override
Future<PlatformAudioDecoder?> createAudioDecoder(
AudioDecoderConfig config, {
BackendContext? context,
}) async {
if (!_codecs.contains(config.codec)) return null;
return WebAudioFallbackDecoder.create(config);
}