From 310e7f227982beeedbb012c8ebc6b841f4aa5008 Mon Sep 17 00:00:00 2001 From: Ben Loftis Date: Mon, 11 Mar 2024 08:29:56 -0500 Subject: [PATCH] make a distinction between total channels with or without the embedded bed chans --- libs/ardour/ardour/surround_return.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libs/ardour/ardour/surround_return.h b/libs/ardour/ardour/surround_return.h index d276f0a761..c0db7597ea 100644 --- a/libs/ardour/ardour/surround_return.h +++ b/libs/ardour/ardour/surround_return.h @@ -68,8 +68,8 @@ public: return _current_n_channels; } - size_t total_n_channels () const { - return _total_n_channels; + size_t total_n_channels (bool with_beds = true) const { + return _total_n_channels - (with_beds ? 0 : 10); } std::shared_ptr surround_processor () const {