llfbandit / record

Audio recorder from microphone to a given file path. No external dependencies, MediaRecorder is used for Android an AVAudioRecorder for iOS.
https://pub.dev/packages/record
233 stars 196 forks source link

throwing -1 when echoCancel is true on IOS #358

Closed amirharati closed 1 month ago

amirharati commented 3 months ago

Package version 5.1.2

Environment

Describe the bug When EchoCancel is true produce the following (Also echo cancellations seems to be working and so far not crashing) throwing -1 from AU (0x155f97270): auou/vpio/appl, render err: -1

Add your record configuration RecordConfig(...) RecordConfig( encoder: AudioEncoder.pcm16bits, sampleRate: 16000, numChannels: 1, echoCancel: true, ));

To Reproduce

Steps to reproduce the behavior: when echoCancel is active and stream starts the above error start to fill the console screen in xcode.

Expected behavior

to not throw this exception.

Additional context

Add any other context about the problem here.

jaween commented 2 months ago

Related: https://github.com/llfbandit/record/issues/341#issuecomment-2185072607