@@ -135,7 +135,7 @@ static inline float db2lin(const float db)
135
135
}
136
136
137
137
#ifdef MOD_MONITOR_STEREO_HANDLING
138
- static void ProcessMonitorLoopStereo (monitor_client_t * const mon , jack_nframes_t nframes , uint32_t offset )
138
+ static float ProcessMonitorLoopStereo (monitor_client_t * const mon , jack_nframes_t nframes , uint32_t offset )
139
139
{
140
140
const float * const bufIn1 = jack_port_get_buffer (mon -> in_ports [offset ], nframes );
141
141
const float * const bufIn2 = jack_port_get_buffer (mon -> in_ports [offset + 1 ], nframes );
@@ -156,9 +156,9 @@ static void ProcessMonitorLoopStereo(monitor_client_t *const mon, jack_nframes_t
156
156
const bool in2_connected = mon -> connected & (1 << (offset + 1 ));
157
157
158
158
#ifdef _MOD_DEVICE_DUOX
159
- const sf_compressor_state_st * const compressor = offset == 2 ? & mon -> compressor2 : & mon -> compressor ;
159
+ sf_compressor_state_st * const compressor = offset == 2 ? & mon -> compressor2 : & mon -> compressor ;
160
160
#else
161
- const sf_compressor_state_st * const compressor = & mon -> compressor ;
161
+ sf_compressor_state_st * const compressor = & mon -> compressor ;
162
162
#endif
163
163
164
164
if (in1_connected && in2_connected )
@@ -291,8 +291,10 @@ static int ProcessMonitor(jack_nframes_t nframes, void *arg)
291
291
return 0 ;
292
292
}
293
293
294
- const float volume = mon -> volume ;
294
+ #ifndef MOD_MONITOR_STEREO_HANDLING
295
295
const float step_volume = mon -> step_volume ;
296
+ #endif
297
+ const float volume = mon -> volume ;
296
298
float smooth_volume = mon -> smooth_volume ;
297
299
298
300
if (floats_differ_enough (volume , smooth_volume ))
0 commit comments