StrokesPlus Forum
                       
StrokesPlus Forum
Home | Profile | Register | Active Topics
Members | Search | FAQ
Username:
Password:
Save Password
Forgot your Password?

 All Forums
 Lua Scripts
 General Action Scripts
 Fade Volume to Mute and Reverse
 New Topic  Reply to Topic
 Printer Friendly
Author Previous Topic Topic Next Topic  

xopen

10 Posts

Posted - 11/17/2012 :  00:08:42  Show Profile  Reply with Quote
local a = acGetVolume()
local b = 0
local c = acGetMute()
local d = a
if c < 1 then

while b < a do
a = a - 1
acSetVolume(a,0)
acDelay(20)
end

acToggleMute()
acSetVolume(d,0)
else
acSetVolume(0,0)
acToggleMute()

while a > b do

b = b +1
acSetVolume(b, 0)
acDelay(20)
end


end

xopen

10 Posts

Posted - 11/17/2012 :  00:12:41  Show Profile  Reply with Quote
q469649305 , Thank you for your guidance!
Go to Top of Page

Rob

USA
2538 Posts

Posted - 11/17/2012 :  10:36:23  Show Profile  Visit Rob's Homepage  Reply with Quote
For those reading this post, this fades the volume from the current level smoothly to 0 then mutes. Once muted, it sets the volume back to the original value (while remaining muted).

Then, when the action fires again, it sets the volume to 0, unmutes, and fades the volume back to the original setting.

If I were to name this functionality, I would call it sexy mute toggle
Go to Top of Page
  Previous Topic Topic Next Topic  
 New Topic  Reply to Topic
 Printer Friendly
Jump To:
StrokesPlus Forum © 2011-2018 Rob Yapchanyk Go To Top Of Page
Snitz Forums 2000