[FR] AudioAppComponent::setAudioChannels XmlElement param

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

I’ve added this to develop.

Thanks Fabian!

Cheers,

Rail