mirror of
https://github.com/onyx-and-iris/voicemeeter.git
synced 2024-11-15 17:40:51 +00:00
go fmt all files.
add midi event toggle to the pooler
This commit is contained in:
parent
7f992a1a87
commit
505b5969a2
3
base.go
3
base.go
@ -326,7 +326,8 @@ func getMidiMessage() bool {
|
|||||||
uintptr(unsafe.Pointer(&b1[0])),
|
uintptr(unsafe.Pointer(&b1[0])),
|
||||||
uintptr(1024),
|
uintptr(1024),
|
||||||
)
|
)
|
||||||
if int(res) < 0 {
|
x := int(res)
|
||||||
|
if x < 0 {
|
||||||
err := fmt.Errorf("VBVMR_GetMidiMessage returned %d", res)
|
err := fmt.Errorf("VBVMR_GetMidiMessage returned %d", res)
|
||||||
fmt.Println(err)
|
fmt.Println(err)
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
|
@ -119,7 +119,7 @@ func (p *pooler) macrobuttons() {
|
|||||||
|
|
||||||
func (p *pooler) midi() {
|
func (p *pooler) midi() {
|
||||||
for p.run {
|
for p.run {
|
||||||
if getMidiMessage() {
|
if p.event.midi && getMidiMessage() {
|
||||||
p.notify("midi")
|
p.notify("midi")
|
||||||
}
|
}
|
||||||
time.Sleep(33 * time.Millisecond)
|
time.Sleep(33 * time.Millisecond)
|
||||||
|
Loading…
Reference in New Issue
Block a user