On 14 September 2010 15:19, Chris Robinson chris.kcat@gmail.com wrote:
It likely doesn't matter, but it already has to check for values that exceed the -1..+1 range, so one more check to see if it's positive or negative won't make much of a difference, I don't think. Though if you'd rather do
I don't care much about the extra conditional, if the dsound mixer did proper interpolation it would be doing much more expensive operations anyway, and if it was supposed to be fast it should probably be using SSE intrinsics when available. It just looks questionable to me to use a different scale for positive and negative values.
Come to think of it though, doesn't ALSA accept floating point values itself anyway?