mad-dev
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? to configure libmad ,using: CC=arm-linux-gcc ./configure --enable-speed --disable-debugging --enable-fpm=arm --disable-nls --disable-mmap --host=arm-linux
arm-linux-gcc3.2.3 Processor: dragonball mc9328mx1(arm920t) OS:embedded linux 2.4.18 audio oss madplay0.15.1b libmad0.15.1b libid3tag-0.15.1b
Thank you for any help!
feiye jingu_nb@126.com
2005-11-08
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