SamplerPlugin demo projcet vst3 bug Help wanted

I am a JUCE starter,I have successfully built the demo project but when I load it in my DAW it does’nt work properly.(see [Bug]: SamplerPluginDemo.vst3 does not work properly/SamplerPluginDemo.vst3不能正常使用 · Issue #1621 · juce-framework/JUCE · GitHub) .I have worked on this problem so long that I am exausted…Is there anyone who can help me?(For more information,see the github issue link)

I am new here and I am not sure whether I should ask questions in the forum with this topic.I will appreciate it if someone could give me some suggestions.Thanks a lot!.::>_<::

I am not very familiar with Cubase but perhaps you can build the plugin in Release instead of Debug and try again? If the meter shows 0dB in general there should be at least some sound.

Ok I will try to build in Release and try again.

I asked my friends to test this plugin on their computers,but their DAW doesn’t even recognized the plugin(ableton live,cubase or fl studio)

When the plugin is loaded the meter goes 0dB and you can hear one click sound then it remains silent(other vsti also cann’t play any sound) It’s so confusing.

In Debug mode when the plugin is loaded the meter goes 0dB and you can hear one click sound then it remains silent(other vsti also cann’t play any sound) It’s so confusing.

I build it in release mode,it still doesn’t work properly.

The notes seems to sustain when it should release,I will look over these code again tomorrow(I am so tired today).Thanks for your suggestion!:slight_smile: :slight_smile:

Regarding this, you need to static link C++ runtime. Have you done so in Projucer (I am not familiar with Projucer).

oh,I am using dll runtime.I will try again

There is now some bug in the Juce Sampler example. Doesn’t seem to be anything obvious, the code isn’t crashing or jasserting when run under the debugger, so I guess this is going to be difficult to fix.

Yeah it’s so confusing…The vst2 version works correctly but vst3 doesn’t…

I have updated my issue description:[Bug]: SamplerPluginDemo.vst3 does not work properly/SamplerPluginDemo.vst3不能正常使用 · Issue #1621 · juce-framework/JUCE .Hoping for more suggestions.:slight_smile:

I got the bug fixed on my system by changing the process function like this :

template <typename Element>
void process (AudioBuffer<Element>& buffer, MidiBuffer& midiMessages)
{
    buffer.clear();

That is, I added the buffer.clear() to the beginning. Incredibly, it was Google Gemini that figured this one out before I even looked at the code myself. :face_with_spiral_eyes:

!Thanks!I will try it at once!

I have asked different AI lots of times,their answers are just useless…Could I ask What prompt did you give gemini?

It was a longer conversation, not a single prompt

1 Like

Yeah…It really takes a lot of time…Thank you so much…(The JUCE forum blocks me from posting replys in the first 24 hours after I registered my account,that’s why I’m only replying now.)