Subject: [linux-audio-dev] Converting float to int
From: Daniel V. (dvenkita_AT_ecel.uwa.edu.au)
Date: Mon Oct 29 2001 - 15:03:53 EET
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?
Cheers,
Daniel.
This archive was generated by hypermail 2b28 : Mon Oct 29 2001 - 14:52:59 EET