I am trying to create a real-time audio Windows application (32-bit) using Qt. I am using JUCE(5.4.5) libraries in my Qt project to get audio out. I am very new to Juce but I’ve managed to get audio out by looking at a couple of examples. I made my own AudioAppComponent class but without the GUI Component. Using Juce to get audio out has been a smooth process.
However, I am having issues with latency. I seem to be experiencing a delay of 40ms (!) between a “note” going in and audio coming out of the speakers. I set up the audio device with a bufferSize of 256 (5.8 ms) and sampleRate of 44100 Hz. I am using WASAPI. I tried using ASIO but it seems a Windows 10 update has stopped ASIO4ALL from working at all.
So my question is, what is a good way to decrease latency on Windows 10 (1903) with WASAPI? Or does 40ms indicate that I am using JUCE wrong somehow?
I would appreciate any help I can get. Thanks in advance!
PS: Does JUCE support WASAPI’s AudioClient3?