# AudioProcessorGraph PDC and changing latency

**URL:** <https://forum.juce.com/t/audioprocessorgraph-pdc-and-changing-latency/18121>\
**Category:** General JUCE discussion\
**Created:** [June 15, 2016, 6:39pm UTC](https://forum.juce.com/t/audioprocessorgraph-pdc-and-changing-latency/18121 "2016-06-15T18:39:03Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![railjonrogut](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/railjonrogut/32/505_2.png) [@railjonrogut](https://forum.juce.com/u/railjonrogut)\
**Post date:** [June 17, 2016, 11:10pm UTC](https://forum.juce.com/t/audioprocessorgraph-pdc-and-changing-latency/18121/2 "2016-06-17T23:10:02Z")

</div>

I think I may have a work-around…

I derived my PluginWindow class from AudioProcessorListener and added it as a Listener to the 3rd party plug-in’s AudioProcessor. When PluginWindow receives audioProcessorChanged() it triggers an AsyncUpdate to the AudioProcessorGraph which causes it to buildRenderingSequence(). It appears to be working okay.

I added a public method to AudioProcessorGraph:

```auto
void refreshGraph() { triggerAsyncUpdate(); }
```

I would prefer that I only could get a notification when the AudioProcessor latency changes though.

Rail

---

_[View the full topic](https://forum.juce.com/t/audioprocessorgraph-pdc-and-changing-latency/18121)._
