// 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) }
// Terminates and cleans up the midi streams. func Terminate() error { C.Pt_Stop() return convertToError(C.Pm_Terminate()) }