robbert-vdh / nih-plug

Rust VST3 and CLAP plugin framework and plugins - because everything is better when you do it yourself
ISC License
1.81k stars 155 forks source link

Fix CPAL buffer bug (standalone) #142

Closed JerwuQu closed 6 months ago

JerwuQu commented 7 months ago

This is trying to solve the same thing as #104.

nih-plug master gives distorted audio for me when using wasapi or alsa backends when built standalone.

104 fixes this, but for me it only worked for one channel, while this worked for all channels.

Tested working on Windows/WASAPI and Linux/Alsa. Further testing would be good too.

robbert-vdh commented 6 months ago

Thanks for the PR! There were two (or well, three) issues here: