mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-06-20 19:03:56 +02:00
Rename the VST2 audio processing scratch buffer
Since we also have input and output audio buffers, plain 'buffer' is a bit too overloaded here.
This commit is contained in:
@@ -617,14 +617,14 @@ void Vst2PluginBridge::do_process(T** inputs, T** outputs, int sample_frames) {
|
|||||||
// After sending these buffers to the Wine plugin host, we'll receive the
|
// After sending these buffers to the Wine plugin host, we'll receive the
|
||||||
// results back in the same object so we can write back the outputs
|
// results back in the same object so we can write back the outputs
|
||||||
sockets.host_vst_process_replacing.send(process_input_buffers,
|
sockets.host_vst_process_replacing.send(process_input_buffers,
|
||||||
process_buffer);
|
process_scratch_buffer);
|
||||||
|
|
||||||
// NOTE: We use a different object for this, because otherwise
|
// NOTE: We use a different object for this, because otherwise
|
||||||
// mono-to-stereo plugins or any other configuration where the number
|
// mono-to-stereo plugins or any other configuration where the number
|
||||||
// of input channels does not match the number of output channels
|
// of input channels does not match the number of output channels
|
||||||
// would still result in constant reallocations
|
// would still result in constant reallocations
|
||||||
sockets.host_vst_process_replacing.receive_single<AudioBuffers>(
|
sockets.host_vst_process_replacing.receive_single<AudioBuffers>(
|
||||||
process_output_buffers, process_buffer);
|
process_output_buffers, process_scratch_buffer);
|
||||||
|
|
||||||
std::vector<std::vector<T>>& output_audio_buffers =
|
std::vector<std::vector<T>>& output_audio_buffers =
|
||||||
std::get<std::vector<std::vector<T>>>(process_output_buffers.buffers);
|
std::get<std::vector<std::vector<T>>>(process_output_buffers.buffers);
|
||||||
|
|||||||
@@ -174,7 +174,7 @@ class Vst2PluginBridge : PluginBridge<Vst2Sockets<std::jthread>> {
|
|||||||
* `process()`, `processReplacing()` and `processDoubleReplacing()` calls.
|
* `process()`, `processReplacing()` and `processDoubleReplacing()` calls.
|
||||||
* This buffer also needs to stay alive.
|
* This buffer also needs to stay alive.
|
||||||
*/
|
*/
|
||||||
SerializationBuffer<0> process_buffer;
|
SerializationBuffer<0> process_scratch_buffer;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* We'll periodically synchronize the Wine host's audio thread priority with
|
* We'll periodically synchronize the Wine host's audio thread priority with
|
||||||
|
|||||||
Reference in New Issue
Block a user