for a CD, I have a sound loaded from an mp3,
audio = new Sound(); audio.loadSound("audio/audio.mp3", 0); audio.start(0,999);
this loops fine.
but changing it to streaming, it doesn't loop. i haven't found anything saying it shouldn't loop, but it doesn't. anyone know if you can loop a streaming loaded mp3?
audio = new Sound(); audio.loadSound("audio/audio.mp3", 1); audio.start(0,999);
if not, also is there a way to tell the movie to wait till the mp3 is loaded? i'm not too familiar with the sound object. i know you can tell the length once loaded, and where you are in the mp3, but is there a way like bytes loaded bytes total (and does bytesloaded and bytestotal even work on a CD, i've seen mention it doesn't)?
i think i've tied to load a sound with streaming in the past and i remember it causing problems. but, anyway....two things.
1) the sound object in MX has an onLoad event that you can use to start the playback of the sound once loaded. as far as tracking the loading with some form of getBytesLoaded/Total, i'm not sure if that can be done (those may possibly work when called from whatever movieclip your sound object is in though).
2) how large is the sound file? i'm assuming anything that you'll be looping will reside somewhere under the 100k mark once compressed. if so, i wouldn't worry about streaming since the data rate for CD's will normally be high enough to load that kind of data in the blink of an eye....if it is really large though (say 500k-1MB+) then you'll definitely need it.
hope this helps!
onLoad, that was what I was looking for.
but no, it's a full song, i'm not sure of the size since the song hasn't been picked yet, so it could be from 1-6 meg.
I changed it to non-streaming tho, never could get the streaming one to loop.
now there is also a problem in testing, sometimes the mp3 plays and sometimes it doesn't. tested on 3 PC machines:
one machine it won't play at all from the projector, but the mp3 itself will play fine
on another machine it has played every time from the projector
on the 3rd machine, it won't play at all from the projector
so i'm not sure, but it seems like it may be a CD issue? so some can play the mp3 through the projector from the CD and some can't? Or is this some sort of bug in the projector maybe? on my dev machine, the projector would sometimes not play the mp3 even from the harddrive. Rebooting fixes it. I'm using 6.0 r50 version of the player, just dloaded it a day ago to make sure I had the latest version.
Or is there some magic compression setting best to use for the mp3?
The mp3 I have was 22,050, 16 bit stereo, saved at 128Kbps