Audio Library .stop() command

Hi All,

First post on these forums - nice to meet everyone here. I’m looking to mainly work with audio on the Pynq Z2 board. So far I find it very easy to get up and running. I managed to get recording and playback functions working.

However, I’d like to ask what’s the best way to implement stopping recording or playback with button push instead of stopping using duration. There doesn’t seem to be a .stop() command in the library.