Samples: Float to Int conversions.
Which section of code in alsa-lib is doing these conversions.
I would like to see what code you use for the task of converting samples in float format to samples in int format.
James
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
Quoted 3 lines · On Fri, 30 Apr 2004 18:04:31 +0000 James Courtier-Dutton…
Which section of code in alsa-lib is doing these conversions. I would like to see what code you use for the task of converting samples in float format to samples in int format.
You might also be interested in:
http://www.mega-nerd.com/FPcast/
Erik
Signature · 15 lines
+-----------------------------------------------------------+ Erik de Castro Lopo [email protected] (Yes it's valid) +-----------------------------------------------------------+ "The beauty of religious mania is that it has the power to explain everything. Once God (or Satan) is accepted as the first cause of everything which happens in the mortal world, nothing is left to chance...logic can be happily tossed out the window." - Stephen King ------------------------------------------------------- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click
Quoted 3 lines · James Courtier-Dutton
Which section of code in alsa-lib is doing these conversions. I would like to see what code you use for the task of converting samples in float format to samples in int format.
Function snd_pcm_lfloat_convert_float_integer() in alsa-lib/src/pcm/pcm_lfloat.c.
Regards,
Clemens
-------------------------------------------------------
This SF.Net email is sponsored by: Oracle 10g
Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE.
http://ads.osdn.com/?ad_id=3149&alloc_id=8166&op=click