I’m trying to combine the capabilities of ODAS and microphone array libraries from matrix-hal to detect a sound and record it together with its energy and position. However, in a first test something went wrong, when I run the code to record audios https://matrix-io.github.io/matrix-documentation/matrix-hal/examples/microphone/ it works very well, however if next to this I try to run the example of arrival direction using ODAS https://www.hackster.io/matrix-labs/direction-of-arrival-for-matrix-voice-creator-using-odas-b7a15b it does not work because the device is busy. The same error appeared if I try to record a sound using arecord.
An this moment, the only way to fix this error that I found is to shutdown and power on the Pi. Someone know what it happens? Why if I run the audio record demo, it blocks the device? How to free the device?
Thanks for your help.