Skip to content

Commit 1a53dc2

Browse files
committed
obs-transitions: Set tracks for stinger
Currently the stinger is output on all tracks. When MONITOR_ONLY is picked, we explicitly set the mixers bitwise to 0 so that the audio never goes to outputs except the extra ASIO track. Signed-off-by: pkv <pkv@obsproject.com>
1 parent ee23b70 commit 1a53dc2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

plugins/obs-transitions/transition-stinger.c

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ static void stinger_update(void *data, obs_data_t *settings)
137137
}
138138

139139
s->monitoring_type = (int)obs_data_get_int(settings, "audio_monitoring");
140+
// If the stinger is set to monitor only, don't send audio to output mixers
141+
if (s->monitoring_type == OBS_MONITORING_TYPE_MONITOR_ONLY) {
142+
obs_source_set_audio_mixers(s->media_source, 0);
143+
} else {
144+
obs_source_set_audio_mixers(s->media_source, 0xFF);
145+
}
146+
140147
obs_source_set_monitoring_type(s->media_source, s->monitoring_type);
141148

142149
s->fade_style = (enum fade_style)obs_data_get_int(settings, "audio_fade_style");

0 commit comments

Comments
 (0)