The method playTrack() should play the track passed to it, period. If checking for a track already playing and deciding what to do should occur before calling playTrack(). So back up the bus. ...
Type: Posts; User: GregBrannon
The method playTrack() should play the track passed to it, period. If checking for a track already playing and deciding what to do should occur before calling playTrack(). So back up the bus. ...
I don't really understand your question or what you mean by, "I can only use a while-loop." What you've described seems more appropriately done with an if() codition, something like:
if (...