コード例 #1
0
ファイル: devices.go プロジェクト: lamproae/audio-1
// 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
ファイル: portmidi.go プロジェクト: scgolang/portmidi
// Terminates and cleans up the midi streams.
func Terminate() error {
	C.Pt_Stop()
	return convertToError(C.Pm_Terminate())
}