On Tue, Dec 23, 2008 at 9:22 PM, Sameer Naik <sameer.subscriptions at damagehead.com> wrote: > Thanks a lot Mike, thats just what i needed to know. > > to confirm, the samples_per_frame for mp3 frames can be either 1152 or 576. So > basically a buffer of (1152 * width * channels) size should handle all (mpeg1, > layer{1,2,3}) cases, right! Correct. > > Secondly, how would the buffer size calculation go for AAC-HE audio frames, for > say bitrate:320Kbps > channels: 2 > sampling rate: 48000Hz > width: 16bits You'd need to refer to the AAC-HE specification; I don't have a copy so I can't do this, to see what the possible frame sizes are. Mike