mirror of
https://github.com/WarmUpTill/SceneSwitcher.git
synced 2026-04-04 16:25:39 -05:00
Fix volume not changing when selecting fade with a duration of 0s
This commit is contained in:
parent
d31ae77176
commit
016d963598
|
|
@ -117,7 +117,7 @@ bool MacroActionAudio::PerformAction()
|
|||
obs_source_set_muted(s, false);
|
||||
break;
|
||||
case AudioAction::SOURCE_VOLUME:
|
||||
if (_fade) {
|
||||
if (_fade && _duration.seconds != 0) {
|
||||
startSourceFade(_duration, (float)_volume / 100.0f,
|
||||
_audioSource);
|
||||
} else {
|
||||
|
|
@ -125,7 +125,7 @@ bool MacroActionAudio::PerformAction()
|
|||
}
|
||||
break;
|
||||
case AudioAction::MASTER_VOLUME:
|
||||
if (_fade) {
|
||||
if (_fade && _duration.seconds != 0) {
|
||||
startMasterFade(_duration, (float)_volume / 100.0f);
|
||||
} else {
|
||||
obs_set_master_volume((float)_volume / 100.0f);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user