startPlayerFromMic method

  1. @override
Future<int> startPlayerFromMic(
  1. FlutterSoundPlayerCallback callback, {
  2. int? numChannels,
  3. int? sampleRate,
  4. int bufferSize = 20480,
  5. bool enableVoiceProcessing = false,
})
override

Implementation

@override
Future<int> startPlayerFromMic(FlutterSoundPlayerCallback callback,
    {int? numChannels,
    int? sampleRate,
    int bufferSize = 20480,
    bool enableVoiceProcessing = false}) {
  return invokeMethod(
    callback,
    'startPlayerFromMic',
    {
      'numChannels': numChannels,
      'sampleRate': sampleRate,
      'bufferSize': bufferSize,
      'enableVoiceProcessing': enableVoiceProcessing ? 1 : 0,
    },
  );
}