AudioPlayHead in AudioProcessorGraphs


#1

I am trying to get the AudioPlayHead passed to plugins instantiated in an AudioProcessorGraph (so their tempo related functions work). I thought it would be enough to set the playhead on the graph before calling processBlock like this:

  graph.setPlayHead( playHead );
  graph.processBlock (buffer,midiMessages);

but this does not work. Should it work? Did I miss out some step that would make the playHead propagate to all nodes in the graph?

It does work if I call setPlayHead directly on each of the AudioProcessors in the graph’s nodes.


#2

Yes, If I remember correctly, the playhead doesn’t propagate through all nodes.
You should set it directly to all nodes.


#3

Thanks, good to know that’s the way it’s supposed to work!