Closed philip260897 closed 2 years ago
Currently, this is intended behaviour. There hasn't been a need for changing configs before. Let me check how much work it is to remove the caching part. If the native language parts need to be adjusted, I can only fix it for android
The main reason why this caching exists is to prevent parallel access to the microphone. It shouldn't be a problem to cache the configs instead, though, and reinitialise the microphone.
Please update to mic_stream: 0.6.0
and check whether the changes make it work for you
Yes, works like a charm! thank you :)
Hey, first of all thanks for the work you've done. My application requires for me to start/stop recording frequently with different settings (sample rate, bit depth), but I've noticed the config won't change when calling
MicStream.microphone
after the first time!I've noticed on
line 90: mic_stream.dart
you're working with the cached_microphone
stream from previous initializations which won't reconfigure the microphone with the new settings. Is this intended behavior, if so, can you add an option to force re-initialization every time ?