示例#1
0
// This function will cause terrible errors if called. Do not use it.
func (s *SystemDevices) Shutdown() error {
	m := map[string]SystemDevice(*s)
	for _, device := range m {
		device.InPort().Close()
		device.OutPort().Close()
	}
	return nil
	errNum := C.Pm_Terminate()
	return makePortMidiError(errNum)
}
示例#2
0
// Terminates and cleans up the midi streams.
func Terminate() error {
	C.Pt_Stop()
	return convertToError(C.Pm_Terminate())
}