2022-06-28 16:29:13 +01:00
|
|
|
package voicemeeter
|
|
|
|
|
|
|
|
type devDesc struct {
|
|
|
|
Name, Type, Hwid string
|
|
|
|
}
|
|
|
|
|
|
|
|
type device struct {
|
|
|
|
}
|
|
|
|
|
|
|
|
func newDevice() *device {
|
|
|
|
return &device{}
|
|
|
|
}
|
|
|
|
|
|
|
|
// Ins returns the total number of physical input devices
|
2022-07-01 01:19:16 +01:00
|
|
|
func (d *device) Ins() int {
|
2022-07-10 23:08:14 +01:00
|
|
|
return int(getNumDevices("in"))
|
2022-06-28 16:29:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
// Ins returns the total number of physical input devices
|
2022-07-01 01:19:16 +01:00
|
|
|
func (d *device) Outs() int {
|
2022-07-10 23:08:14 +01:00
|
|
|
return int(getNumDevices("out"))
|
2022-06-28 16:29:13 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
func (d *device) Input(i int) devDesc {
|
2022-07-10 23:08:14 +01:00
|
|
|
n, t_, id := getDeviceDescription(i, "in")
|
2022-06-28 16:29:13 +01:00
|
|
|
vals := map[uint64]string{
|
|
|
|
1: "mme",
|
|
|
|
3: "wdm",
|
|
|
|
4: "ks",
|
|
|
|
5: "asio",
|
|
|
|
}
|
|
|
|
return devDesc{Name: n, Type: vals[t_], Hwid: id}
|
|
|
|
}
|
|
|
|
|
|
|
|
func (d *device) Output(i int) devDesc {
|
2022-07-10 23:08:14 +01:00
|
|
|
n, t_, id := getDeviceDescription(i, "out")
|
2022-06-28 16:29:13 +01:00
|
|
|
vals := map[uint64]string{
|
|
|
|
1: "mme",
|
|
|
|
3: "wdm",
|
|
|
|
4: "ks",
|
|
|
|
5: "asio",
|
|
|
|
}
|
|
|
|
return devDesc{Name: n, Type: vals[t_], Hwid: id}
|
|
|
|
}
|