Closed walterg2 closed 6 years ago
@walterg2 I've released v1.0.2-pre where I attempted to handle this with some additional cleanup. However, I can't reproduce the exception when I'm debugging... tried to decline the iOS mic prompt but it seems to allow me to continue to use the APIs w/o throwing errors. Can you install and verify this release takes care of the issue you're seeing?
Closing this issue but would be great if anyone could confirm this is fixed in the latest releases.
Problem Statement: While using the AudioRecorder plugin, if a situation occurs where the
AudioStream
implementation throws an exception (the easiest one to replicate is to deny access to the Microphone), theWaveRecorder
does not dispose of theFileStream
andBinaryWriter
objects. This makes it so you cannot clean up the directory and file that is requested thewav
file to be saved to.