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:
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.
Hmmm… well the AudioGraph does keep audio buffers for it’s connections between the processors. I think they only get re-allocated when rebuilding the audio graph, right? Have you tried if only a buffer increase triggers the bug? It could be that the AudioGraph is fine if the buffer size is decreased.