mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2026-04-18 05:23:31 +00:00
changes to error handling
readme, changelog updated to reflect changes version bump
This commit is contained in:
12
device.go
12
device.go
@@ -1,5 +1,7 @@
|
||||
package voicemeeter
|
||||
|
||||
import "fmt"
|
||||
|
||||
type devDesc struct {
|
||||
Name, Type, Hwid string
|
||||
}
|
||||
@@ -22,7 +24,10 @@ func (d *device) Outs() int {
|
||||
}
|
||||
|
||||
func (d *device) Input(i int) devDesc {
|
||||
n, t_, id := getDeviceDescription(i, "in")
|
||||
n, t_, id, err := getDeviceDescription(i, "in")
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
vals := map[uint64]string{
|
||||
1: "mme",
|
||||
3: "wdm",
|
||||
@@ -33,7 +38,10 @@ func (d *device) Input(i int) devDesc {
|
||||
}
|
||||
|
||||
func (d *device) Output(i int) devDesc {
|
||||
n, t_, id := getDeviceDescription(i, "out")
|
||||
n, t_, id, err := getDeviceDescription(i, "out")
|
||||
if err != nil {
|
||||
fmt.Println(err)
|
||||
}
|
||||
vals := map[uint64]string{
|
||||
1: "mme",
|
||||
3: "wdm",
|
||||
|
||||
Reference in New Issue
Block a user