Create a dummy entity with the string "" or NULL and then use snd_playing (handle); to check when the sound has ended. You can remove the entity now.