So I have a standalone app and my MainContentComponent is derived from AudioAppComponent.
I have an AudioProcessorGraph and it works fine… I have an audio file loaded in my SynthProcessor and a bunch of connections all working great… until I change the buffer size in the audio settings (or the sample rate… but to make things easier for this discussion let’s focus on the buffer size)… if I change the buffer size I handle the change in:
which basically has:
m_pMainGraph->setPlayConfigDetails (2, 2, sampleRate, samplesPerBlockExpected); m_pMainGraph->prepareToPlay (sampleRate, samplesPerBlockExpected);
m_pSynthProc->setPlayConfigDetails (2, iNumChannels, sampleRate, samplesPerBlockExpected);
and the playback becomes noise.
If I rebuild the connections as well in prepareToPlay() then playback is fine… but I shouldn’t have to remove all the connections and rebuild them if the buffer size changes…
I’m guessing this has nothing to do with AudioAppComponent… but rather the AudioProcessorGraph
EDIT: BTW I did try triggering an AsyncUpdate on the graph instead of removing all the connections and rebuilding the graph… and that didn’t make a difference.