# Components storing data vs Just Referencing Processor

**URL:** <https://forum.juce.com/t/components-storing-data-vs-just-referencing-processor/35064>\
**Category:** General JUCE discussion\
**Created:** [September 3, 2019, 6:25pm UTC](https://forum.juce.com/t/components-storing-data-vs-just-referencing-processor/35064 "2019-09-03T18:25:32Z")\
**Posts on this page:** 1\
**Showing post:** 13

<div class="post-metadata">

**Author:** ![holy-city](https://avatars.discourse-cdn.com/v4/letter/h/8491ac/32.png) [@holy-city](https://forum.juce.com/u/holy-city)\
**Post date:** [September 4, 2019, 6:27pm UTC](https://forum.juce.com/t/components-storing-data-vs-just-referencing-processor/35064/13 "2019-09-04T18:27:56Z")

</div>

The function call is in `AudioProcessorParameter` not APVTS, so it doesn’t need APVTS to work. I’ve pleaded this case for awhile but [you won’t be able to avoid AudioProcessorParameter forever](https://forum.juce.com/t/are-legacy-parameter-methods-going-to-be-deprecated/32784/6) . 😢

> This is because I have been informed that the APVTS parameters are not sample accurate so changes to these cannot be relied on to happen at a specific time.

That’s an issue with the JUCE plugin wrappers, not APVTS. I can think of a way to fix the limitation without drastically changing the abstraction but the only thread safety concerns would be to post a message to the message thread when a real time parameter change is present in the audio callback to update listeners. Since under the hood the only thing changing in the audio callback is the POD type for the parameter, it _should_ be safe to access even if it’s a little outdated. Copies might help if you’re displaying parameters somewhere, for example smoothing them in a meter or something.

---

_[View the full topic](https://forum.juce.com/t/components-storing-data-vs-just-referencing-processor/35064)._
