Reading and playing audio from soundcard

I recompiled with JUCE_AUDIO=1 in juce_config.h and was able to get far. The deviceSelector allowed me to select my Line6 UX2 device, but the moment I do that, I see an exception in audioDeviceIOCallback because inputChannelData[0] is null. This only happens if I scroll down to select the ASIO device.

Jules, is it possible to add example code that reads from ASIO? And preferably that mixes with a wav player?

Reading from ASIO is exactly the same as reading from any other type of device, so there’s no special case needed. The audio code in the juce demo does exactly what you’re talking about - it reads the incoming data to show it as a waveform, and can play a wave file at the same time.

Very nice entry! I will follow you!