# VST3 Hosting - setCurrentProgram(), reset() inoperative?

**URL:** <https://forum.juce.com/t/vst3-hosting-setcurrentprogram-reset-inoperative/17683>\
**Category:** Audio Plugins\
**Created:** [May 11, 2016, 10:33pm UTC](https://forum.juce.com/t/vst3-hosting-setcurrentprogram-reset-inoperative/17683 "2016-05-11T22:33:00Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![synthdan](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@synthdan](https://forum.juce.com/u/synthdan)\
**Post date:** [May 11, 2016, 10:33pm UTC](https://forum.juce.com/t/vst3-hosting-setcurrentprogram-reset-inoperative/17683/1 "2016-05-11T22:33:00Z")

</div>

I’ve encountered a couple issues while working with JUCE 4.2 to host VST3 plugins.

1. I can use the getNumPrograms() and getProgramName() functions successfully, but setCurrentProgram() doesn’t do anything. This isn’t surprising, given the function definition:

I know VST3 uses “Program Lists” but I haven’t located any alternative functions for loading presets. Could anyone help me understand how to load a VST3 factory preset using JUCE?

1. I’ve noticed that calling reset() on a VST3 does not cause the plugin to flush its buffers as expected. Is there a mechanism in Juce’s VST3 implementation that can be used to flush the buffers of a VST3 plugin?

Thanks!  
Dan

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [May 16, 2016, 1:39pm UTC](https://forum.juce.com/t/vst3-hosting-setcurrentprogram-reset-inoperative/17683/2 "2016-05-16T13:39:05Z")

</div>

Hi SynthDan,

Can you check the latest tip on develop to see if this is fixed? In particular can you check the following two commits:

[Call setProcessing (false) when resting a VST3 plug-in](https://github.com/julianstorer/JUCE/commit/93a41cf7432e615fdb4c635ed01cfb2f7e4ef4a5)  
[Support factory programs in VST3 hosting](https://github.com/julianstorer/JUCE/commit/f4086ad8f4dc89dea296a6bb14df06bf123fbd78)

Thank you!

Fabian

---

<div class="post-metadata">

**Author:** ![synthdan](https://avatars.discourse-cdn.com/v4/letter/s/c68b51/32.png) [@synthdan](https://forum.juce.com/u/synthdan)\
**Post date:** [May 16, 2016, 6:33pm UTC](https://forum.juce.com/t/vst3-hosting-setcurrentprogram-reset-inoperative/17683/3 "2016-05-16T18:33:49Z")

</div>

All indications are that both of these issues are fixed beautifully. Thank you!

Dan

---

<div class="post-metadata">

**Author:** ![luzifer](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/luzifer/32/60_2.png) [@luzifer](https://forum.juce.com/u/luzifer)\
**Post date:** [July 5, 2016, 3:03pm UTC](https://forum.juce.com/t/vst3-hosting-setcurrentprogram-reset-inoperative/17683/4 "2016-07-05T15:03:39Z")

</div>

It seems AudioUnits are still missing a `reset()` implementation it looks like i’d be enough to call `resetBusses()` or maybe even better `AudioUnitReset (audioUnit, kAudioUnitScope_Global, 0)`.  
Also hosted VSTv2 don’t seem to receive the `reset()` call.

---

<div class="post-metadata">

**Author:** ![luzifer](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/luzifer/32/60_2.png) [@luzifer](https://forum.juce.com/u/luzifer)\
**Post date:** [July 12, 2016, 3:26pm UTC](https://forum.juce.com/t/vst3-hosting-setcurrentprogram-reset-inoperative/17683/5 "2016-07-12T15:26:27Z")

</div>

I’d like to raise attention to this thread again. Maybe i should have started a new one?

---

<div class="post-metadata">

**Author:** ![fr810](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/fr810/32/841_2.png) [@fr810](https://forum.juce.com/u/fr810)\
**Post date:** [July 13, 2016, 7:54am UTC](https://forum.juce.com/t/vst3-hosting-setcurrentprogram-reset-inoperative/17683/6 "2016-07-13T07:54:47Z")

</div>

Hi Luzifer, I’m aware of this bug. Sorry it’s taking so long but I will roll out a bunch of fixes for related issues with the multibus updates.

---

<div class="post-metadata">

**Author:** ![luzifer](https://sea2.discourse-cdn.com/flex026/user_avatar/forum.juce.com/luzifer/32/60_2.png) [@luzifer](https://forum.juce.com/u/luzifer)\
**Post date:** [July 13, 2016, 8:27am UTC](https://forum.juce.com/t/vst3-hosting-setcurrentprogram-reset-inoperative/17683/7 "2016-07-13T08:27:20Z")

</div>

hi fabian, that’s fine. it’s just that bugs reported that way occasionally drop under the table. hope to see you guys in berlin again.
