volume.cpp SetFadervalue() accepts a float, then calls
helper.cpp Fadervalue2dBfs() which expects a uint16_t.
FaderValue2dbfs then most of that function does its math in floats. Float -> uint16 loses precision and takes extra code steps converting types.
Unless there is a specific reason for the type casting.
volume.cpp SetFadervalue() accepts a float, then calls
helper.cpp Fadervalue2dBfs() which expects a uint16_t.
FaderValue2dbfs then most of that function does its math in floats. Float -> uint16 loses precision and takes extra code steps converting types.
Unless there is a specific reason for the type casting.