getName

.getName()

Returns the file name of this sound. This is the name of the Sound file in the Asset Manager, which this Sound is playing.

music = new Sound( 'my_music.mp3' )

name = music.getName() // set to 'my_music.mp3'