[FR] AudioAppComponent::setAudioChannels XmlElement param


#1

Minor change which allows us to recall the deviceManager settings… and is backward compatible…

In the AudioAppComponent header:

    /** A subclass should call this from their constructor, to set up the audio. */
    void setAudioChannels (int numInputChannels, int numOutputChannels, const XmlElement* const xml = nullptr);

and in the AudioAppComponent implementation file:

void AudioAppComponent::setAudioChannels (int numInputChannels, int numOutputChannels, const XmlElement* const xml)
{
    String audioError = deviceManager.initialise (numInputChannels, numOutputChannels, xml, true);
    jassert (audioError.isEmpty());

    deviceManager.addAudioCallback (&audioSourcePlayer);
    audioSourcePlayer.setSource (this);
}

Thanks,

Rail


#2

I’ve added this to develop.


#3

Thanks Fabian!

Cheers,

Rail