go fmt all files.

add midi event toggle to the pooler
This commit is contained in:
onyx-and-iris 2022-08-23 14:03:07 +01:00
parent 7f992a1a87
commit 505b5969a2
2 changed files with 3 additions and 2 deletions

View File

@ -326,7 +326,8 @@ func getMidiMessage() bool {
uintptr(unsafe.Pointer(&b1[0])),
uintptr(1024),
)
if int(res) < 0 {
x := int(res)
if x < 0 {
err := fmt.Errorf("VBVMR_GetMidiMessage returned %d", res)
fmt.Println(err)
os.Exit(1)

View File

@ -119,7 +119,7 @@ func (p *pooler) macrobuttons() {
func (p *pooler) midi() {
for p.run {
if getMidiMessage() {
if p.event.midi && getMidiMessage() {
p.notify("midi")
}
time.Sleep(33 * time.Millisecond)