I installed a fresh Android Studio and build the AAudio Samples.
I noticed that when "echo" exits that it crashes.
It seems to call closeStream(recordingStream_) twice.
Once in stop and then again in a destructor.
It is deleted the first time and crashes the second.
It should set recordingStream_ = nullptr after closing.
and then always check it before closing.
What component should I file a bug in. Or is this a known issue?
closing it down as PR merged. The main factor is AAudioStream_close() taking care of the dataCallaback() nicely, saving lot of the application sync issues.
I installed a fresh Android Studio and build the AAudio Samples.
I noticed that when "echo" exits that it crashes. It seems to call closeStream(recordingStream_) twice. Once in stop and then again in a destructor. It is deleted the first time and crashes the second.
It should set recordingStream_ = nullptr after closing. and then always check it before closing.
What component should I file a bug in. Or is this a known issue?