move comment
This commit is contained in:
parent
4ac19e0dab
commit
c73cf88081
@ -49,9 +49,6 @@ type VolumeSettings struct {
|
|||||||
}
|
}
|
||||||
|
|
||||||
func GetVolumeSettings() (*VolumeSettings, error) {
|
func GetVolumeSettings() (*VolumeSettings, error) {
|
||||||
//osascript -e "get volume settings"
|
|
||||||
//output volume:81, input volume:50, alert volume:100, output muted:false
|
|
||||||
|
|
||||||
device, result := GetDefaultOutputDevice()
|
device, result := GetDefaultOutputDevice()
|
||||||
|
|
||||||
if result != AudioHardwareNoError {
|
if result != AudioHardwareNoError {
|
||||||
@ -210,3 +207,6 @@ const (
|
|||||||
|
|
||||||
//script := "set volume output muted (not output muted of (get volume settings))"
|
//script := "set volume output muted (not output muted of (get volume settings))"
|
||||||
//return exec.Command("osascript", "-e", "set volume output muted (not output muted of (get volume settings))").Run()
|
//return exec.Command("osascript", "-e", "set volume output muted (not output muted of (get volume settings))").Run()
|
||||||
|
|
||||||
|
//osascript -e "get volume settings"
|
||||||
|
//output volume:81, input volume:50, alert volume:100, output muted:false
|
||||||
|
Loading…
Reference in New Issue
Block a user