mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-08 04:20:13 +02:00
Only set up VST3 SHM audio buffers in setActive()
This avoids doing the duplicate check (since both `setProcessing()` and `setActive()` would be called), and this also gets rid of the assumption added a couple commits ago that `setupProcessing()` is only ever called once, which is not true.
This commit is contained in:
@@ -142,7 +142,7 @@ Steinberg::Vst::ProcessData& YaProcessData::reconstruct(
|
||||
|
||||
// The actual audio data is contained within a shared memory object, and the
|
||||
// input and output pointers point to regions in that object. These pointers
|
||||
// are calculated while handling `IAudioProcessor::setupProcessing()`.
|
||||
// are calculated while handling `IAudioProcessor::setActive()`.
|
||||
// NOTE: The 32-bit and 64-bit audio pointers are a union, and since this is
|
||||
// a raw memory buffer we can set either `channelBuffers32` or
|
||||
// `channelBuffers64` to point at that buffer as long as we do the
|
||||
|
||||
Reference in New Issue
Block a user