convertToM4aBytes method
Implementation
@override
Future<Uint8List> convertToM4aBytes(Uint8List inputData, String formatHint) async {
try {
final result = await methodChannel.invokeMethod<Uint8List>(
'convertToM4aBytes',
{'inputData': inputData, 'formatHint': formatHint},
);
if (result == null) {
throw AudioConversionException('Native conversion returned null');
}
return result;
} on PlatformException catch (e) {
throw AudioConversionException(
e.message ?? 'Unknown conversion error',
details: e.details?.toString(),
);
}
}