Re: help:loud noise in the madplay

Joe Drew <[email protected]> Wed, 9 Nov 2005 23:07:01 -0500
Newsgroups gmane.comp.audio.mad.devel
Message-ID <[email protected]>
On Nov 8, 2005, at 1:12 AM, feiye wrote:

>    I have transplant madplay to embedded linux2.4.18. When I play  
> the mp3,it has a loud noise in the music.
>     Has anybody met this before? Can anybody help?

I remember problems very much like this when I was first creating  
mpg321, and IIRC the problem was a 'signed' issue. Perhaps 'char' is  
signed on your platform, and your output needs unsigned?

I do remember the fix not making sense to me. PCM samples can be  
negative, I think, but I believe that I had to change to using  
unsigned char explicitly.

Hope this helps,

Joe