* Daniel V. <[EMAIL PROTECTED]> [20011029 09:19]: > Hi all. I know this has been answered before but I can't find the post :( > Anyway, the problem is I have a buffer of audio represented as floats [-1,+1] > that I want to convert to signed shorts for writing to my card. I recall > there is an efficient way of doing this, and an inefficient way. Can someone > remind me with a snippet of code? >
There is some voodoo done in liba52 in libao/audio_out_oss.c: http://liba52.sourceforge.net/ -dave -- David I. Lehn <[EMAIL PROTECTED]> | http://www.lehn.org/~dlehn/ Computer Engineering Graduate @ Virginia Tech in sunny Blacksburg, VA
