On Thu, Mar 03, 2005 at 03:37:00PM +0100, Ruckert Martin wrote: >Christopher Gorrie wrote: >>>Isn't it possible to create a loopable mp3 sound from a loopable wav >>>sound without these silence errors at the start and end of the file ? >>mp3 is not loopable, try using ogg instead. >mp3 is loopable. Just feed your decoder the same mp3 over and over. >What is not possible is to loop the output of the decoder, because the >decoder might create a lead in and lead out = gaps.
You could, if the decoding library (libmad? mp3lib? something else?) is a known quantity: decode the 'loop' MPEG stream once and compare it to the uncompressed audio to find where the start- and end-points of the loop land, then use those in your program; have it decode the MPEG stream into memory and play it using the specified loop points. This may be too much hassle for you, especially if you have a lot of loops to process this way. It was for the Golgotha team, who used MP3s for non-looping sounds and RIFF waves for looping ones. :) -- Matthew Miller <[EMAIL PROTECTED]> "We should not tolerate elitism. I hate elitists. They are so...beneath me." --Aaron Howard _______________________________________________ mp3encoder mailing list [email protected] http://minnie.tuhs.org/mailman/listinfo/mp3encoder
