Ho to revert changed actor image when sound ends?

I want to create a sound switch. If the actor (the switch image) receives a touch event, then a sound should start playing + its image will be changed by another image. That is the easy part.
Now, what do I have to do to bring back the switch to it's default state, right after the sounds has stopped playing? I don't want to work with a timer, as I will have many different sound switches, and all sounds will have different lengths.
I need some sort of function which checks if a particular sound ended or is still playing.
Any help is appreciated.
Now, what do I have to do to bring back the switch to it's default state, right after the sounds has stopped playing? I don't want to work with a timer, as I will have many different sound switches, and all sounds will have different lengths.
I need some sort of function which checks if a particular sound ended or is still playing.
Any help is appreciated.