Hi. I recently started my journey with audio programming and JUCE (which is great audio and GUI library for C++; where have you been all my life, JUCE?). So bear with my obvious questions. I did some tutorials and I’m trying to understand the ecosystem of JUCE audio classes and it gives me headache.
I have a main component and a set of components each with different wave generator or audio player made according to tutorials. Each of them extends the
MainComponent extends just
I’ve read that
AudioAppComponent creates a basic
AudioDeviceManager. But here:
I’ve read there should be only one
AudioDeviceManager per application. I instantiate each of the generators and players and add them to the
MainComponent. Doesn’t it mean I now have one instance of
AudioDeviceManager per component? Shouldn’t that crash the application? And why when I activate many components at once I hear them all summed up without needing to write anything by myself? In the future want to mix my audio sources and add effects to them like reverb, but I don’t understand why they are already mixed. This understanding will probably help me develop the app further.