I am creating a custom MP3 player where audio playback is
started by clicking on the title of the audio, but I also want to
be able to start play abck from the Play/Pause button. In order to
implement this dual approach, I am thinking of checking if a sound
has been loaded (with 'mySound.loadSound("path to sound") already
by the my titleButton.
I am thinking of doing this by checking the
'mySound.position' as that would be 'undefined' if there was no
But how can I check it for being 'undefined', what woud be
the syntax? Itexpects a number so I tried -1, but that didn't work.