Hello, people.
I’m trying to make an audio application with a little more knowledge about Juce architecture. So, I have the following code to start playing a sound device:
AudioDeviceManager *audioDeviceManager = new AudioDeviceManager;
audioDeviceManager->initialise(2,2,0,false);
audioDeviceManager->setAudioCallback(this);
audioDeviceSelector = new AudioDeviceSelectorComponent(*audioDeviceManager,2,2,2,2,true);
So, why do I need to pass the same information to audioDeviceManager and to audioDeviceSelectorComponent?
When I do a “audioDeviceManager->initialise(2,2,0,false);” I’m asking Juce engine to give me a sound device handler with 2 inputs and 2 outputs. When I do a “audioDeviceSelector = new AudioDeviceSelectorComponent(*audioDeviceManager,2,2,2,2,true);” I’m asking to Juce engine nearly the same thing. Is it a intentional redundancy?
Thanks![/code]