24.09.99 at 04:34:17 you wrote to me:
>> MH> MSVC's open/read/close functions appear to be broken. Quick fix:
>> [...]
>> MH> That seems to fix it.
MH> I'd suggest using Iwasa Kazmi's fix instead. i.e. in musicin.c
[...]
Actually, I have applied both patches. The first one one was Iwasa's
patch but it did not solve the problem then I have applied your
patch replacing '!=' condition with bitwise AND.
MH> I think that's because unlike WAV etc., there is no length
MH> information in the MP3 header.
But in case of constant bitrate the length of the track can be
calculated straightforwardly.
MH> The whole MP3 (well, the headers of all the frames) would have to
MH> be pre-scanned to give a time estimate.
BTW, is it the only way to calculate the length of the track encoded
in VBR mode?
---
Sergey A. Maslyakov
2:5030/1024@fidonet
--
MP3 ENCODER mailing list ( http://geek.rcc.se/mp3encoder/ )