From 504102ef7924387b67b29eb792e7214139e13d13 Mon Sep 17 00:00:00 2001 From: Robbert van der Helm Date: Mon, 31 Aug 2020 23:39:06 +0200 Subject: [PATCH] Increase the maximum number of audio channels #35 Not sure why it's doing this, but Renoise seems to report 112 speakers per audio channel, so the 256 audio channel limit would be exceeded when using more than 2 output channels. --- CHANGELOG.md | 5 +++++ src/common/serialization.h | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index e893d63e..6924db36 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -16,6 +16,11 @@ Versioning](https://semver.org/spec/v2.0.0.html). TODO: Remove the notice about this from the README +### Fixed + +- Increased the limit for the maximum number of audio channels. This would cause + issues in Renoise when using many output channels. + ## [1.5.0] - 2020-08-21 ### Added diff --git a/src/common/serialization.h b/src/common/serialization.h index f915e766..3679d528 100644 --- a/src/common/serialization.h +++ b/src/common/serialization.h @@ -34,9 +34,10 @@ /** * The maximum number of audio channels supported. Some plugins report a huge * amount of input channels, even though they don't even process any incoming - * audio. + * audio. Renoise seems to report 112 speakers per audio channel, so this limit + * is now quite a bit higher than it should have to be. */ -constexpr size_t max_audio_channels = 256; +constexpr size_t max_audio_channels = 16384; /** * The maximum number of samples in a buffer. */