remove unnecesary lines

This commit is contained in:
David Daily 2020-05-11 23:03:54 -05:00
parent ab70c607d6
commit 6adcd99cb0
1 changed files with 1 additions and 131 deletions

132
VB.ahk
View File

@ -253,79 +253,6 @@ dial_to_pan(val)
; == HOTKEYS ==
; =============
/*
Volume_Up::
If GetKeyState("ScrollLock", "T") ; Control music volume if scroll lock is on
{
cLvl := readParam("Strip[2]" . ".Gain")
if (cLvl != "")
{
cLvl += 1
adjustVolLvl("Strip[2]" . ".Gain", cLvl)
}
Return
}
b0M := Round(readParam("Bus[0]" . ".Mute"))
b1M := Round(readParam("Bus[1]" . ".Mute"))
if !(b0M)
{
cLvl := readParam("Bus[0]" . ".Gain")
if (cLvl != "")
{
cLvl += 1
adjustVolLvl("Bus[0]" . ".Gain", cLvl)
}
}
if !(b1M)
{
cLvl := readParam("Bus[1]" . ".Gain")
if (cLvl != "")
{
cLvl += 1
adjustVolLvl("Bus[1]" . ".Gain", cLvl)
}
}
return
Volume_Down::
If GetKeyState("ScrollLock", "T") ; Control music volume if scroll lock is on
{
cLvl := readParam("Strip[2]" . ".Gain")
if (cLvl != "")
{
cLvl -= 1
adjustVolLvl("Strip[2]" . ".Gain", cLvl)
}
Return
}
b0M := Round(readParam("Bus[0]" . ".Mute"))
b1M := Round(readParam("Bus[1]" . ".Mute"))
if !(b0M)
{
cLvl := readParam("Bus[0]" . ".Gain")
if (cLvl != "")
{
cLvl -= 1
adjustVolLvl("Bus[0]" . ".Gain", cLvl)
}
}
if !(b1M)
{
cLvl := readParam("Bus[1]" . ".Gain")
if (cLvl != "")
{
cLvl -= 1
adjustVolLvl("Bus[1]" . ".Gain", cLvl)
}
}
return
*/
Volume_Mute::
b0M := Round(readParam("Bus[0]" . ".Mute")) ; Speakers
b1M := Round(readParam("Bus[1]" . ".Mute")) ; Headphones
@ -355,64 +282,6 @@ Volume_Mute::
}
Return
/*
!m:: ; Mute: No audio out
Send {F23}
b3M := Round(readParam("Bus[3]" . ".Mute")) ; Comms IN
s4M := Round(readParam("Strip[4]" . ".Mute")) ; Comms OUT
If (s4M)
{
adjustToggle("Bus[3]" . ".Mute", "1") ; Comms IN
adjustToggle("Strip[4]" . ".Mute", "1") ; Comms OUT
return
}
If !(b3M)
{
adjustToggle("Bus[3]" . ".Mute", "0")
} else {
adjustToggle("Bus[3]" . ".Mute", "1")
}
Return
!n:: ; Deafen: No audio in or out
Send {F24}
s4M := Round(readParam("Strip[4]" . ".Mute")) ; Comms OUT
If (s4M)
{
adjustToggle("Bus[3]" . ".Mute", "1") ; Comms IN
adjustToggle("Strip[4]" . ".Mute", "1") ; Comms OUT
} else {
adjustToggle("Bus[3]" . ".Mute", "0") ; Comms IN
Sleep, 650 ; Delay so that the "deafened" sound from discord can play
adjustToggle("Strip[4]" . ".Mute", "0") ; Comms OUT
}
Return
!j:: ; Mute toggle for meetings on work laptop
Send {F24}
cM := Round(readParam("Bus[2]" . ".Mute"))
if (cM)
{
adjustToggle("Bus[2]" . ".Mute", "1") ; Work Laptop
adjustToggle("Bus[3]" . ".Mute", "0") ; Comms IN
adjustToggle("Strip[3]" . ".Mute", "0") ; Desktop
Sleep, 650 ; Delay so that the "deafened" sound from discord can play
adjustToggle("Strip[4]" . ".Mute", "0") ; Comms OUT
}
if !(cM)
{
adjustToggle("Bus[2]" . ".Mute", "0") ; Work Laptop
adjustToggle("Bus[3]" . ".Mute", "1") ; Comms IN
adjustToggle("Strip[4]" . ".Mute", "1") ; Comms OUT
adjustToggle("Strip[3]" . ".Mute", "1") ; Desktop
}
Return
*/
; == Functions ==
; ===============
readParam(loc){
@ -472,3 +341,4 @@ die(die_string:="UNSPECIFIED FATAL ERROR.", exit_status:=254) {
MsgBox 16, FATAL ERROR, %die_string%
ExitApp exit_status
}