update
This commit is contained in:
parent
dba2860155
commit
a61d697224
@ -61,7 +61,7 @@ func (midiDev *MIDIDevice) Init() error {
|
||||
|
||||
func (midiDev *MIDIDevice) Write(p []byte) (int, error) {
|
||||
midiDev.Signal <- 1
|
||||
cData := (*C.CChar)(unsafe.Pointer(&p[0]))
|
||||
cData := (*C.char)(unsafe.Pointer(&p[0]))
|
||||
defer C.free(unsafe.Pointer(cData))
|
||||
var status = int(C.send_data(cData, C.int(len(p))))
|
||||
if status != 0 {
|
||||
|
Loading…
Reference in New Issue
Block a user