Versions in this module Expand all Collapse all v0 v0.0.3 Mar 16, 2026 Changes in this version + type Device struct + func NewDeviceFromPointer(ptr unsafe.Pointer) *Device + func (h *Device) Close() error + func (h *Device) GetType() error + func (h *Device) NumInputPorts() int64 + func (h *Device) NumOutputPorts() int64 + func (h *Device) OpenInputPort(portNumber int32) (*InputPort, error) + func (h *Device) OpenOutputPort(portNumber int32) (*OutputPort, error) + func (h *Device) Pointer() unsafe.Pointer + type Error int32 + const ErrUnknown + const ErrWouldBlock + func (e Error) Error() string + type InputPort struct + func NewInputPortFromPointer(ptr unsafe.Pointer) *InputPort + func (h *InputPort) Close() error + func (h *InputPort) Pointer() unsafe.Pointer + func (h *InputPort) Send(buffer *uint8, numBytes uint64) error + func (h *InputPort) SendWithTimestamp(buffer *uint8, numBytes uint64, timestamp int64) int64 + type MIDI_DEVICE_TYPE int32 + const AMIDI_DEVICE_TYPE_BLUETOOTH + const AMIDI_DEVICE_TYPE_USB + const AMIDI_DEVICE_TYPE_VIRTUAL + type MIDI_OPCODE int32 + const AMIDI_OPCODE_DATA + const AMIDI_OPCODE_FLUSH + type Media_status_t = capi.Media_status_t + type MidiDevice_Protocol int32 + const AMIDI_DEVICE_PROTOCOL_UMP_MIDI_1_0_UP_TO_128_BITS + const AMIDI_DEVICE_PROTOCOL_UMP_MIDI_1_0_UP_TO_128_BITS_AND_JRTS + const AMIDI_DEVICE_PROTOCOL_UMP_MIDI_1_0_UP_TO_64_BITS + const AMIDI_DEVICE_PROTOCOL_UMP_MIDI_1_0_UP_TO_64_BITS_AND_JRTS + const AMIDI_DEVICE_PROTOCOL_UMP_MIDI_2_0 + const AMIDI_DEVICE_PROTOCOL_UMP_MIDI_2_0_AND_JRTS + const AMIDI_DEVICE_PROTOCOL_UMP_USE_MIDI_CI + const AMIDI_DEVICE_PROTOCOL_UNKNOWN + type OutputPort struct + func NewOutputPortFromPointer(ptr unsafe.Pointer) *OutputPort + func (h *OutputPort) Close() error + func (h *OutputPort) Pointer() unsafe.Pointer + func (h *OutputPort) Receive(opcodePtr *int32, buffer *uint8, maxBytes uint64, numBytesReceivedPtr *uint64, ...) int64