[Solved] new RingBuffer class buggy?

SDK for VST 3 audio plug-in and host development.
Tom
Posts: 1
Joined: Tue Jun 21, 2016 12:06 pm

[Solved] new RingBuffer class buggy?

Postby Tom » Tue Mar 20, 2018 11:38 pm

Hi,
I tried to use the new RingBuffer class and found that it does not work correctly:

The push methods never return false when the reader position is at 0. The check

Code: Select all

      if (pos == (readPosition.load () - 1))
         return false; // full


is not correct and will never return false. Is this really the intended behavior!?

Arne Scheffler
Posts: 184
Joined: Mon Jun 20, 2016 7:53 am

Re: new RingBuffer class buggy?

Postby Arne Scheffler » Wed Mar 21, 2018 9:44 am

Yes, you're right, that doesn't work. We will fix it.

Cheers
Arne

Arne Scheffler
Posts: 184
Joined: Mon Jun 20, 2016 7:53 am

Re: new RingBuffer class buggy?

Postby Arne Scheffler » Thu Mar 22, 2018 1:16 pm

Hi Tom,
if you update the sources from GitHub, you should now have a working ring buffer class.

Thanks again for reporting this issue.

Cheers
Arne


Return to “VST 3 SDK”

Who is online

Users browsing this forum: No registered users and 1 guest