setSampleRate method
Implementation
@override
Future<void> setSampleRate(int sampleRate) async {
try {
await _methodChannel.invokeMethod('setSampleRate', {
'sampleRate': sampleRate,
});
} on PlatformException catch (e) {
throw Exception('Failed to set sample rate: ${e.message}');
}
}