Quote:
Originally Posted by DarkAvenger
The mdct keeps a buffer of the last 256 samples by itself, thus it works as explained.
reg. (1) The encoder doesn't know it. But the front-end doesn't write the encoded frame. In your pseudo code you are missing the write_encoded_frame, which only happens in the loop. I also haven't noticed this until Justin explained it...
|
The first two "encode_frame" calls always return an output length of 0. So the missing write_encoded_frame has no effect.