Skip to content

Commit a859ea4

Browse files
committed
Use new macros in effects code too
Signed-off-by: falkTX <[email protected]>
1 parent 6044bed commit a859ea4

File tree

3 files changed

+30
-12
lines changed

3 files changed

+30
-12
lines changed

src/effects.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1742,7 +1742,7 @@ static void* HMIClientThread(void* arg)
17421742
break;
17431743
#endif
17441744
case sys_serial_event_type_pedalboard_gain:
1745-
monitor_client_setup_volume(clampf(atof(msg), -30.0f, 20.0f));
1745+
monitor_client_setup_volume(clampf(atof(msg), MOD_MONITOR_VOLUME_MUTE, 20.0f));
17461746
break;
17471747
default:
17481748
break;
@@ -8386,7 +8386,7 @@ int effects_processing_enable(int enable)
83868386

83878387
// use fade-out while turning off
83888388
case -1:
8389-
monitor_client_setup_volume(-30.f);
8389+
monitor_client_setup_volume(MOD_MONITOR_VOLUME_MUTE);
83908390
if (g_processing_enabled)
83918391
{
83928392
monitor_client_wait_volume();
@@ -8396,7 +8396,7 @@ int effects_processing_enable(int enable)
83968396

83978397
// don't use fade-out while turning off, mute right away
83988398
case -2:
8399-
monitor_client_setup_volume(-30.f);
8399+
monitor_client_setup_volume(MOD_MONITOR_VOLUME_MUTE);
84008400
monitor_client_flush_volume();
84018401
g_processing_enabled = false;
84028402
break;

src/monitor/monitor-client.c

Lines changed: 19 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -45,14 +45,6 @@
4545
#define MOD_MONITOR_STEREO_HANDLING
4646
#endif
4747

48-
#if defined(_DARKGLASS_DEVICE_PABLITO)
49-
#define MOD_MONITOR_VOLUME_MUTE -60.f
50-
#define MOD_MONITOR_VOLUME_WAIT 0.02f
51-
#else
52-
#define MOD_MONITOR_VOLUME_MUTE -30.f
53-
#define MOD_MONITOR_VOLUME_WAIT 0.03f
54-
#endif
55-
5648
#if defined(_MOD_DEVICE_DUOX) || defined(_MOD_DEVICE_DWARF)
5749
#define MOD_IO_PROCESSING_ENABLED
5850
#endif
@@ -519,7 +511,25 @@ int jack_initialize(jack_client_t* client, const char* load_init)
519511

520512
const char* const ourclientname = jack_get_client_name(client);
521513

522-
#ifdef _MOD_DEVICE_DWARF
514+
#if defined(_DARKGLASS_DEVICE_PABLITO)
515+
snprintf(ourportname, MAX_CHAR_BUF_SIZE, "%s:out_1", ourclientname);
516+
jack_connect(client, ourportname, "system:playback_1");
517+
518+
snprintf(ourportname, MAX_CHAR_BUF_SIZE, "%s:out_2", ourclientname);
519+
jack_connect(client, ourportname, "system:playback_2");
520+
521+
snprintf(ourportname, MAX_CHAR_BUF_SIZE, "%s:out_3", ourclientname);
522+
jack_connect(client, ourportname, "system:playback_3");
523+
524+
snprintf(ourportname, MAX_CHAR_BUF_SIZE, "%s:out_4", ourclientname);
525+
jack_connect(client, ourportname, "system:playback_4");
526+
527+
snprintf(ourportname, MAX_CHAR_BUF_SIZE, "%s:out_5", ourclientname);
528+
jack_connect(client, ourportname, "system:playback_7");
529+
530+
snprintf(ourportname, MAX_CHAR_BUF_SIZE, "%s:out_6", ourclientname);
531+
jack_connect(client, ourportname, "system:playback_8");
532+
#elif defined(_MOD_DEVICE_DWARF)
523533
snprintf(ourportname, MAX_CHAR_BUF_SIZE, "%s:out_2", ourclientname);
524534
jack_connect(client, ourportname, "system:playback_1");
525535

src/monitor/monitor-client.h

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,14 @@
4646
************************************************************************************************************************
4747
*/
4848

49+
#if defined(_DARKGLASS_DEVICE_PABLITO)
50+
#define MOD_MONITOR_VOLUME_MUTE -60.f
51+
#define MOD_MONITOR_VOLUME_WAIT 0.02f
52+
#else
53+
#define MOD_MONITOR_VOLUME_MUTE -30.f
54+
#define MOD_MONITOR_VOLUME_WAIT 0.03f
55+
#endif
56+
4957

5058
/*
5159
************************************************************************************************************************

0 commit comments

Comments
 (0)