Hi there,
I'm writing a playout system which utilises Jack and MAD to play MP3 files. I've written a simple app which under libao (I was using this prior to Jack) will happily play any MP3 file I throw at it. However, upon adding the relevant code to make it a Jack client I've run across a problem. MAD seems to output audio at either 24bit fixed point or 16bit signed whereas Jack expects audio in 32bit floating point. Is there an easy way to make this work, am I being thick?
Please help!
Cheers,
Andy M
Em Ter 07 Set 2004 10:20, andrew@fnarg.demon.co.uk escreveu:
Hi there,
I'm writing a playout system which utilises Jack and MAD to play MP3 files. I've written a simple app which under libao (I was using this prior to Jack) will happily play any MP3 file I throw at it. However, upon adding the relevant code to make it a Jack client I've run across a problem. MAD seems to output audio at either 24bit fixed point or 16bit signed whereas Jack expects audio in 32bit floating point. Is there an easy way to make this work, am I being thick?
Please help!
Look at mad_f_todouble at libmad/fixed.h
Cheers,
Andy M
Rafael