Re: help output function
Rafael Ávila de Espíndola <[email protected]>
| Newsgroups | gmane.comp.audio.mad.devel |
|---|---|
| Message-ID | <[email protected]> |
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Em Sex 20 Fev 2004 14:35, Jorge ---- escreveu: > Hi everybody, this is my first post, I'm a spanish > student and I'm doing my final career proyect, this is > a mp3 player and I'm using libmad. > I'm studing the minimad.c but I dont know how the > output function works, I've tried the mpg321 output > function and it works better but I can't understand > what it really do. It doesnt open /dev/dsp, does it? No it doesn't. It just print the output to stdout. The function scale changes the scale from 24 to 16 bits and make sure that the value is within [-1;1). To test the output you may use sox: ./minimad > test.raw < test.mp3 sox -c 2 -r 44100 -w -s test.raw test.wav > please I need I little bit of help > > thanks all > > Jorge Suarez-Solis Rivaya Rafael Ávila de Espíndola -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.4 (GNU/Linux) iD8DBQFANlguLlrfGJ8JUHwRAqhbAKDfRPTGHi3GUilRngvz78btv018fwCeMiUv 0vluMO+ZEavMU+sRI4E4BFE= =kxuW -----END PGP SIGNATURE-----