Would it be possible to abstract the conversion of floating point audio sample data to integer so that client code can override the behavior (for all device types)? I’m talking specifically about
Furthermore, it would be convenient if all the audio device types used a common bottleneck for quantization of sample data. For example, juce_win32_DirectSound has convertInputValue() instead of convertFloatToInt16().
juce_AudioDataConverters.h looks extremely interesting WASAPI seems to use it for quantization. Perhaps audio data conversion can be further abstracted with virtual functions, each AudioIODevice subclass can be modified to use a caller provided converter, and the default would be to use the existing conversion?