Currently am working below piece of code using JUCE .
1st line code , by default it is taking “DirectSound”
audioDeviceManager.initialise(2, 2, nullptr, true, "", nullptr); // Initialize with 2 input and 2 output channels
Here am switching Audio device type to “WIndows Audio” … But device shows nothing… It is null pointer . Am just writing console based application
audioDeviceManager.setCurrentAudioDeviceType("Windows Audio", true);
juce::AudioIODevice* device = audioDeviceManager.getCurrentAudioDevice();
