[Help with Script?] Mute my music when someone redeem a sound

sullbhit

New Member
Hello, I'm new. I hope to post this in the right section.
I usually have some music in background during my stream, however, I set with points some little rewards like play sound effects and music, I would glad to not overlap the background music with the viewers' requests.
Is there a way/a script to auto-mute my stream music while the "redeem" is playing?
Thanks for any help, have a nice day!
Greetings
 

upgradeQ

Member
Hello, I'm new. I hope to post this in the right section.
I usually have some music in background during my stream, however, I set with points some little rewards like play sound effects and music, I would glad to not overlap the background music with the viewers' requests.
Is there a way/a script to auto-mute my stream music while the "redeem" is playing?
Thanks for any help, have a nice day!
Greetings
What is your setup? If you are using browser source for "redeem" then it's possible via scripting. There is obs_source_audio_active function, you can check it periodically, then if music starts playing in browser source: set background music mute status to false obs_source_set_muted
 
Top