Know if an effect has finished playing

Hi there,

i’m using SimpleAudioEngine and I would like to able to stop a group of sounds (not every sound running in the game) so I thought I could have a list with every sound id and stop them when needed, but what happens if the sound has already finished and i try to stop it?
If that throws an error or the ids are reused i can’t just save every sound id that i want to stop, so it would be cool to know when an audio effect has finished playing.

Thanks!