madplay-0.15.2b acting crazy on OSX 10.4

wind <[email protected]> Mon, 2 Oct 2006 12:00:32 -0400
Newsgroups gmane.comp.audio.mad.devel
Message-ID <[email protected]>
Hello,

I have downloaded the latest versions of madplay, libmad and  
libid3tag. I had to rename the wait() routine in the audio_carbon.c  
otherwise I was getting conflicts against the sys/wait.h. After that  
everything built, but madplay is acting absolutely crazy. I gave it  
an aiff file to play and all I get is gibberish. I gave it a simple  
wave file to play and this is what I get:

[ukiel:/MP3/madplay-0.15.2b] wind% madplay simpsn03.wav
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert  
Leslie et al.
error: frame 0: lost synchronization
0 frames decoded (0:00:00.0), -inf dB peak amplitude, 0 clipped samples

There is no sound at all.
Now this file plays fine in VLC, Itunes and such, no problems.

This is what I get when I feed an Apple aiff file through:

[ukiel:/MP3/madplay-0.15.2b] wind% madplay greidernii_kovsh.aif
MPEG Audio Decoder 0.15.2 (beta) - Copyright (C) 2000-2004 Robert  
Leslie et al.
error: frame 0: lost synchronization
error: frame 2: CRC check failed
error: frame 3: CRC check failed
error: frame 4: CRC check failed
error: frame 5: CRC check failed
error: frame 6: CRC check failed
error: frame 7: CRC check failed
error: frame 8: CRC check failed
error: frame 9: CRC check failed
error: frame 10: CRC check failed
error: frame 11: CRC check failed
error: frame 12: CRC check failed
error: frame 13: CRC check failed
error: frame 14: CRC check failed
error: frame 15: CRC check failed
error: frame 16: CRC check failed
error: frame 17: CRC check failed
error: frame 18: CRC check failed
error: frame 19: CRC check failed
error: frame 20: CRC check failed
error: frame 21: CRC check failed
error: frame 22: CRC check failed
error: frame 23: CRC check failed
error: frame 24: CRC check failed
error: frame 25: CRC check failed
......

This continues on and on, after a while sound starts coming out, but  
it's just scrambled garbage.

Has anyone managed to successfully run this thing on OSX 10.4? I have  
a PowerMac G4 dual processor computer, plenty of memory and nothing  
strange and heinous installed besides a bunch of FORTRAN compilers.  
I.e. no other sound libraries or anything like that, so there is  
really nothing for madplay to be fighting with.

TIA,

-- Gala

Gala Wind
(301) 614-6221
[email protected]
Code 613.2, Climate and Radiation
SSAI, Inc.
NASA/GSFC
Greenbelt, MD 20771

/*--------------------------------------------------------------------
   -- There's always a way, you just have to find it.
             ( B. Hambly "Children of the Jedi" )
----------------------------------------------------------------------*/