-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
[To: rob@mars.org, mad-dev@lists.mars.org]
On Sat, 25 May 2002, Rob Leslie wrote:
I see. The number of bytes per sample is of course arbitrary, which is why I counted samples instead of bytes.
Why do you say the number of bytes per sample is arbitrary (I guess I don't know much about mp3). I always thought it is 16 bits per sample per channel. Is this not always the case?
Since frames always have the same playing time for any given layer and sampling frequency, you don't have to read headers all the way to your seek point. You can calculate n * the duration of one frame, subtract this from the time of your seek point, and stop scanning when you reach the frame containing this time point.
Wouldn't variable bit rate files have differnt durations per frame depending on the frame?
- -- Russell O'Connor roconnor@alumni.uwaterloo.ca http://www.math.berkeley.edu/~roconnor/ ``Later generations will regard set theory as a disease from which one has recovered.'' -- Poincare