Lam Yick Yan superylam@netscape.net wrote:
Is there a maximum size for mp3 frames that I could safely set as the buffer size?
According to "Bertrand Petit" who wrote madlld (mad low-level demonstration): (can found in MAD main page)
- When this occurs, the remaining unused bytes must be
- put back at the beginning of the buffer and taken in
- account before refilling the buffer. This means that
- the input buffer must be large enough to hold a whole
- frame at the highest observable bit-rate (currently 448
- kb/s). XXX=XXX Is 2016 bytes the size of the largest
- frame? (448000*(1152/32000))/8
I'm not sure where 448 kb/sec comes from.... ?
If you substitute 320 kb/sec into the above formula however, the largest possible MP3 frame comes out as 1440 bytes which I believe is the correct answer.
Andre --
__________________________________________________ Do You Yahoo!? Everything you'll ever need on one web page from News and Sport to Email and Music Charts http://uk.my.yahoo.com