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?
please I need I little bit of help
thanks all
Jorge Suarez-Solis Rivaya
___________________________________________________ Yahoo! Messenger - Nueva versión GRATIS Super Webcam, voz, caritas animadas, y más... http://messenger.yahoo.es
-----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