record icon indicating copy to clipboard operation
record copied to clipboard

[IOS] PlatformException setPreferredInputNumberOfChannels

Open PhuCG opened this issue 6 months ago • 0 comments

Package version record 5.1.2

Environment

  • IOS: IPhone 12Promax - v17.5.1
  • Flutter: 3.24.0
  • Dart: 3.5.0

Describe the bug When I call the recording stream function a few times, the following error starts appearing. PlatformException (PlatformException(record, Failed to start recording, setPreferredInputNumberOfChannels: The operation couldn’t be completed. (OSStatus error -50.), null)) My config:

  const config = RecordConfig(
    encoder: AudioEncoder.pcm16bits,
    numChannels: 1,
    bitRate: 16,
    sampleRate: 16000,
  );

PhuCG avatar Aug 22 '24 02:08 PhuCG