# ARA managing buffers for offline processing

**URL:** <https://forum.juce.com/t/ara-managing-buffers-for-offline-processing/56180>\
**Category:** Audio Plugins\
**Created:** [May 11, 2023, 4:18pm UTC](https://forum.juce.com/t/ara-managing-buffers-for-offline-processing/56180 "2023-05-11T16:18:18Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![octaviusa42](https://avatars.discourse-cdn.com/v4/letter/o/e480ec/32.png) [@octaviusa42](https://forum.juce.com/u/octaviusa42)\
**Post date:** [May 11, 2023, 4:18pm UTC](https://forum.juce.com/t/ara-managing-buffers-for-offline-processing/56180/1 "2023-05-11T16:18:18Z")

</div>

hello i’m working on a plugin using ARA and had some questions about how to deal with offline processing of audio. currently, i’m still using the ARAPluginDemo as a starting point, and I’m wondering if anyone has thoughts on how to improve the architecture of my plugin.

currently when the plugin is loaded onto a track it will take each region in the track and perform some processing to the region, upon creation of the plugin. I achieve this by performing the processing on the audio in the constructor of ARADemoPluginAudioModification, and storing a copy of the audio buffer in this class in a `juce::AudioBuffer<float>*` memeber.

the issue is that store an entire copy of the buffer is expensive, and by creating a copy like this It’s difficult to utilize other parts of code since we expect to receive AudioSource like objects when dealing with audio.

I’m wondering if there’s a more space efficient way to perform offline processing and save the result?

and if not is there a way to communicate the change to the original audio buffer rather than having to store a copy of it?

 ![juce-forum](https://us1.discourse-cdn.com/flex026/uploads/juce/original/2X/a/ab5032853b063803e6d52bbe8369f1fba9aee7fb.png)

---

<div class="post-metadata">

**Author:** ![CoolHary5](https://avatars.discourse-cdn.com/v4/letter/c/858c86/32.png) [@CoolHary5](https://forum.juce.com/u/CoolHary5)\
**Post date:** [September 13, 2023, 10:52pm UTC](https://forum.juce.com/t/ara-managing-buffers-for-offline-processing/56180/2 "2023-09-13T22:52:32Z")

</div>

Hey buddy , did you find any other way here?
