Skip to content

Commit 1e32291

Browse files
committed
Fix MOD builds
Signed-off-by: falkTX <[email protected]>
1 parent e2bda73 commit 1e32291

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

src/monitor/monitor-client.c

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ static inline float db2lin(const float db)
135135
}
136136

137137
#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)
139139
{
140140
const float *const bufIn1 = jack_port_get_buffer(mon->in_ports[offset], nframes);
141141
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
156156
const bool in2_connected = mon->connected & (1 << (offset + 1));
157157

158158
#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;
160160
#else
161-
const sf_compressor_state_st* const compressor = &mon->compressor;
161+
sf_compressor_state_st* const compressor = &mon->compressor;
162162
#endif
163163

164164
if (in1_connected && in2_connected)
@@ -291,8 +291,10 @@ static int ProcessMonitor(jack_nframes_t nframes, void *arg)
291291
return 0;
292292
}
293293

294-
const float volume = mon->volume;
294+
#ifndef MOD_MONITOR_STEREO_HANDLING
295295
const float step_volume = mon->step_volume;
296+
#endif
297+
const float volume = mon->volume;
296298
float smooth_volume = mon->smooth_volume;
297299

298300
if (floats_differ_enough(volume, smooth_volume))

0 commit comments

Comments
 (0)