Hi all,
I’ve submitted this same query to a forum on actionscript.org, hope it’s cool to post here too.
I’m writing a small mp3 player. It reads the playlist from an xml file, then at the end of a song (or when the “Next” button is pressed) automatically plays the next song in the list.
My problem is that if the song is a large file (around 16MB), the player doesn’t play the song – I have to click pause then play a couple of times to play it.
The code is roughly:
function playSong():Void
{
tune = new Sound();
tune.onSoundComplete = playSong;
tune.loadSound(tunes[++current],true);
}
… where ‘tunes’ is an array of paths to the file. I’ve missed out a couple of things, but that’s basically it. Is there an issue with loadSound needing to load some of the song first? Any way of getting around it?
Any ideas gratefully received!
Thanks in advance,
Z