Allow to configure number of mixer scene buttons

For Mixbus increase mixer-scene buttons to 12 (same as Function buttons)
This commit is contained in:
Robin Gareus 2024-12-16 23:28:00 +01:00
parent 42b32fbd7c
commit 17cd211d06
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -100,6 +100,14 @@
#define PX_SCALE(px) std::max ((float)px, rintf ((float)px* UIConfiguration::instance ().get_ui_scale ()))
#ifndef N_MIXER_SCENE_BTNS
# ifdef MIXBUS
# define N_MIXER_SCENE_BTNS 12
# else
# define N_MIXER_SCENE_BTNS 8
# endif
#endif
using namespace ARDOUR;
using namespace ArdourWidgets;
using namespace ARDOUR_UI_UTILS;
@ -315,7 +323,7 @@ Mixer_UI::Mixer_UI ()
_mixer_scene_table.set_homogeneous(false);
for (int column = 0; column < 1; ++column) {
for (int row = 0; row < 8; ++row) {
for (int row = 0; row < N_MIXER_SCENE_BTNS; ++row) {
int col = column * 2;
int scn_index = col * 2 + row;