Compare commits
2 Commits
1.0.0
...
c73cf88081
Author | SHA1 | Date | |
---|---|---|---|
c73cf88081 | |||
4ac19e0dab |
Binary file not shown.
Before Width: | Height: | Size: 5.0 KiB After Width: | Height: | Size: 5.2 KiB |
Binary file not shown.
Before Width: | Height: | Size: 5.5 KiB After Width: | Height: | Size: 5.8 KiB |
@ -49,9 +49,6 @@ type VolumeSettings struct {
|
||||
}
|
||||
|
||||
func GetVolumeSettings() (*VolumeSettings, error) {
|
||||
//osascript -e "get volume settings"
|
||||
//output volume:81, input volume:50, alert volume:100, output muted:false
|
||||
|
||||
device, result := GetDefaultOutputDevice()
|
||||
|
||||
if result != AudioHardwareNoError {
|
||||
@ -210,3 +207,6 @@ const (
|
||||
|
||||
//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()
|
||||
|
||||
//osascript -e "get volume settings"
|
||||
//output volume:81, input volume:50, alert volume:100, output muted:false
|
||||
|
Reference in New Issue
Block a user