Search code examples
libgdx

LIBGDX: How can i tell when a sound has finished playing?


The Sound API seems to be missing a function to indicate that a sound is finished playing. Is there some other way of finding out if the sound is done?


Solution

  • Not without submitting a patch to libgdx as far as I know the underlying Sound Backends for both OpenAL and Android don't even track the information internally, though the Music API has an isPlaying() function and getPosition() function as per the documentation.