Author |
Topic |
|
xopen
10 Posts |
Posted - 11/17/2012 : 00:08:42
|
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
|
q469649305 , Thank you for your guidance! |
|
|
Rob
USA
2615 Posts |
Posted - 11/17/2012 : 10:36:23
|
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 |
|
|
|
Topic |
|
|
|