Abe Pazos wrote: > I don't understand how MP3 can take longer to start. Isn't the AIFF converted > to > MP3 anyways by the IDE?
Not necessarily. In CS3, Publish Settings, the Flash tab, Audio Stream and Audio Event both have a "set" button. You can control the bitrate of an mp3, or you can set it to raw, which will leave the file as aiff. You can even disable compression, which, I think, allows you to use even higher-quality audio than 44/16. I'm using raw, and it starts playing significantly faster than mp3--even a trimmed mp3. > I'm preloading the MP3s from disk. I have generated them myself, so they are > trimmed until the last sample. Is there something that causes random delays > when > starting MP3s? I can't tell you what goes on under the hood, but yes, there is more of a delay starting an MP3 than an unprocessed aiff. > To test the SOUND_COMPLETE event, I have created a very short sample (about > 1 ms long) which acts as a metronome. I count when it has played 5 times, I > play a > bass drum. The timing I get is quite random. So I don't understand how do you > get > such perfect timing with your playlist class. Or maybe the problem is that > I'm looking > for much more precision than what you needed for the music... It's not so much on-the-millisecond precision--that doesn't work, as your code shows. There are vagaries in when a timer fires, and there are delays on playing MP3s (the MP3s are all downloaded before I play them). You may be looking for something different than I am. I'm assembling a song like a jigsaw puzzle, and it has to sound right, regardless of the speed. As soon as one phrase stops, the next phrase, or note, must begin without hesitation, even if it's a single note in an up-tempo song. I've gotten close with 44/16 aiff files, but there are some songs that are still too fast to drop a single note in the middle of a fast passage. Cordially, Kerry Thompson _______________________________________________ Flashcoders mailing list [email protected] http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

