On Monday, July 28, 2003, at 10:38 PM, Yeh You-Ying wrote:
And I 've tried several ways to change the compiler flags, but still no work. I used dist10 decoder to generate another PCM raw data with the same demo.mp3 I also used Sound Forge to analyze these two PCM raw data. The one generated by minimad seems to be overflow in sample value, the maximum and minimun value are -32768 and 32768 (2^16). Any hint about this ?
For the record (after privately reviewing the output) I believe the problem here is that, by default under Windows, stdout is not in binary mode. Thus the output samples were corrupted by being treated as text.
I have explained in private email that I think the problem can be solved by:
_setmode(_fileno(stdout), _O_BINARY);