Assuming your MPEG source has a different sample rate, you'll need to resample it after it has been decoded. You can find example code in the resample.c module of madplay.
Average each pair of stereo samples to get mono; drop least-significant bits (with rounding maybe) to get to 8 bits.
Out of interest, what is your application? I've tried 7-bit mono at 11kHz, and it sounded awful :-)
-----Original Message----- From: mad-dev-admin@lists.mars.org [mailto:mad-dev-admin@lists.mars.org]On Behalf Of Wen Sent: 30 December 2004 07:33 To: mad-dev@lists.mars.org Subject: [mad-dev] how to convert mp3 into wav by mad?
may i get the wave in 1mono 8bit 8000khz?
-- With my best regards, Wen
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