novocaine icon indicating copy to clipboard operation
novocaine copied to clipboard

Using shorts instead of floats

Open hodgesmr opened this issue 10 years ago • 3 comments

Novocaine automatically converts from shorts to floats. Perhaps create a mechanism to pass back the raw shorts instead? This would probably require making some of the properties not readonly and creating a new input / output blocks that take shorts.

hodgesmr avatar Apr 03 '14 19:04 hodgesmr

Is there a specific use-case where the typecasting is producing undesirable performance hits?

alexbw avatar Apr 16 '14 18:04 alexbw

Aren't there concerns with converting from float to short? Loss of precision?

hodgesmr avatar Apr 16 '14 19:04 hodgesmr

If the data is provided as floating point from the mic, Novocaine uses that. So, I think floats are an optimal common format.

alexbw avatar Apr 16 '14 20:04 alexbw