Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[IOS] PlatformException setPreferredInputNumberOfChannels #384

Closed
PhuCG opened this issue Aug 22, 2024 · 1 comment
Closed

[IOS] PlatformException setPreferredInputNumberOfChannels #384

PhuCG opened this issue Aug 22, 2024 · 1 comment

Comments

@PhuCG
Copy link

PhuCG commented Aug 22, 2024

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,
  );
@llfbandit
Copy link
Owner

Value for bitRate is very wrong.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants