This commit is contained in:
TonyChyi 2018-03-20 08:42:16 +08:00
parent dba2860155
commit a61d697224

View File

@ -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 {