mirror of
https://github.com/robbert-vdh/yabridge.git
synced 2026-05-07 12:10:09 +02:00
Fix dumb memory error when reading buffers
Not sure how this got in, and I'm even less sure why this has not caused any issues before this. In the particular case that was causing a crash, the host was sending 138 sample sized buffers. This error likely only became visible because the lack of memory alignment caused writes to parts of the vector objects themselves.
This commit is contained in:
@@ -18,6 +18,8 @@ Versioning](https://semver.org/spec/v2.0.0.html).
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fixed memory error that was causing playback issues with some buffer sizes in
|
||||
Mixbus6.
|
||||
- Fixed plugin group socket name generation. This prevented plugin groups with
|
||||
the same name from being used simultaneously in multiple Wine prefixes.
|
||||
|
||||
|
||||
@@ -512,7 +512,7 @@ void PluginBridge::process_replacing(AEffect* /*plugin*/,
|
||||
std::vector<std::vector<float>> input_buffers(
|
||||
plugin.numInputs, std::vector<float>(sample_frames));
|
||||
for (int channel = 0; channel < plugin.numInputs; channel++) {
|
||||
std::copy(inputs[channel], inputs[channel] + sample_frames + 1,
|
||||
std::copy(inputs[channel], inputs[channel] + sample_frames,
|
||||
input_buffers[channel].begin());
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user