I’ve created a class for managing the audio of my synth:
class midiSource : public juce::AudioSource
I would like to add it to my mixer. However, the MixerAudioSource class accepts only AudioSource as input. How can I pass midiSource as an input source to my mixer?
(e.g.: mixer.addInputSource(mySource, false);)
Since
juce::MixerAudioSource::addInputSource()expects a pointer to ajuce::AudioSource, or a subclass ofjuce::AudioSource, you can just pass&mySourcetoaddInputSource().