Some audio devices, like Microsoft’s LifeChat LX-3000 USB handset, have different input and output sample rates (41.1k & 48k Hz in its case), and JUCE with Windows Audio (WASAPI) doesn’t support that.
But, since Windows 8 it seems that Windows Audio supports SRC, if you ask it to. So I made a commit to enable it. Seems to work Many thanks to PortAudio whose source I looked at to discover the right Win API chants for this.
Feel free to use it (note that our
master branch is JUCE 5 based, and there’s also a
juce6 branch available) and/or incorporate it into JUCE!