When I had this problem it turned out to be an 'endian' issue. mad output the samples one way, but the audio hardware required the other.
-----Original Message----- 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
The contents of this email and any attachments are sent for the personal attention of the addressee(s) only and may be confidential. If you are not the intended addressee, any use, disclosure or copying of this email and any attachments is unauthorised - please notify the sender by return and delete the message. Any representations or commitments expressed in this email are subject to contract.
ntl Group Limited