Patent ID: 8190441

Claim:
A method of playback by a decoder of a lossy compressed digital media file without quantization gaps, wherein the digital media file is formed of a number of audio samples grouped into a corresponding number of audio frames, comprising: identifying an encoder used to compress the digital media file; obtaining an encoder delay value for the identified encoder; obtaining a decoder delay value for the decoder; determining an audio sample count corresponding to a last valid audio sample; setting a re-synchronization after seek option marker N audio frames from the last valid audio sample; and decoding valid audio samples of the digital media file based on at least the encoder delay value, the decoder delay value, and the audio sample count corresponding to the last valid audio sample, wherein the determining of the audio sample count corresponding to a last valid audio sample, comprises: (a) determining a total number M of audio samples in the digital audio file; (b) decoding an Mth audio sample to form an Mth audio value; (c) decoding an (M-n)th audio sample to form an (M-n)th audio value; (d) generating a fractional change value between the Mth audio value and the (M-n)th audio value; (e) comparing the fractional change value to a first threshold value; and (f) updating a discontinuity counter if the fractional change value is greater than the first threshold.