winmm

package
v0.0.0-...-078ca72 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Rendered for windows/amd64

Index

Constants

View Source
const (
	MMSYSERR_NOERROR     uint32 = 0
	MMSYSERR_BADDEVICEID uint32 = 2
	MIDIERR_STILLPLAYING uint32 = 65
	CALLBACK_NULL        uint32 = 0
	CALLBACK_WINDOW      uint32 = 0x10000
	CALLBACK_THREAD      uint32 = 0x20000
	CALLBACK_FUNCTION    uint32 = 0x30000
	MIDI_IO_STATUS       uint32 = 32
	MM_MIM_OPEN          uint32 = 0x3c1
	MM_MIM_CLOSE         uint32 = 0x3c2
	MM_MIM_DATA          uint32 = 0x3c3
	MM_MIM_LONGDATA      uint32 = 0x3c4
	MM_MIM_ERROR         uint32 = 0x3c5
	MM_MIM_LONGERROR     uint32 = 0x3c6
	MM_MOM_OPEN          uint32 = 0x3c7
	MM_MOM_CLOSE         uint32 = 0x3c8
	MM_MOM_DONE          uint32 = 0x3c9
	MM_MIM_MOREDATA      uint32 = 0x3cc
)

Variables

This section is empty.

Functions

func MidiInAddBuffer

func MidiInAddBuffer(hMidiIn uintptr, lpMidiInHdr *MIDIHDR) (err error)

func MidiInClose

func MidiInClose(hMidiIn uintptr) (err error)

func MidiInGetNumDevs

func MidiInGetNumDevs() uint32

func MidiInOpen

func MidiInOpen(uDeviceID uint32, dwCallback uintptr, dwCallbackInstance uintptr, dwFlags uint32) (hMidiIn uintptr, err error)

func MidiInPrepareHeader

func MidiInPrepareHeader(hMidiIn uintptr, lpMidiInHdr *MIDIHDR) (err error)

func MidiInStart

func MidiInStart(hMidiIn uintptr) (err error)

func MidiInUnprepareHeader

func MidiInUnprepareHeader(hMidiIn uintptr, lpMidiInHdr *MIDIHDR) (err error)

func MidiOutClose

func MidiOutClose(hMidiOut uintptr) (err error)

func MidiOutGetNumDevs

func MidiOutGetNumDevs() uint32

func MidiOutLongMsg

func MidiOutLongMsg(hmo uintptr, lpMidiOutHdr *MIDIHDR) (err error)

func MidiOutOpen

func MidiOutOpen(uDeviceID uint32, dwCallback uintptr, dwCallbackInstance uintptr, dwFlags uint32) (hMidiOut uintptr, err error)

func MidiOutPrepareHeader

func MidiOutPrepareHeader(hMidiOut uintptr, lpMidiOutHdr *MIDIHDR) (err error)

func MidiOutShortMsg

func MidiOutShortMsg(hmo uintptr, dwMsg uint32) (err error)

func MidiOutUnprepareHeader

func MidiOutUnprepareHeader(hMidiOut uintptr, lpMidiOutHdr *MIDIHDR) (err error)

Types

type MIDIHDR

type MIDIHDR struct {
	LpData          *byte
	DwBufferLength  uint32
	DwBytesRecorded uint32
	DwUser          uintptr
	DwFlags         uint32
	LpNext          uintptr
	Reserved        uintptr
	DwOffset        uint32
	DwReserved      [4]uintptr
}

type MIDIINCAPS

type MIDIINCAPS struct {
	WMid           uint16
	WPid           uint16
	VDriverVersion uint32
	SzPname        [32]uint16
	DwSupport      uint32
}

func MidiInGetDevCaps

func MidiInGetDevCaps(uDeviceID uintptr) (lpMidiInCaps *MIDIINCAPS, err error)

type MIDIOUTCAPS

type MIDIOUTCAPS struct {
	WMid           uint16
	WPid           uint16
	VDriverVersion uint32
	SzPname        [32]uint16
	WTechnology    uint16
	WVoices        uint16
	WNotes         uint16
	WChannelMask   uint16
	DwSupport      uint32
}

func MidiOutGetDevCaps

func MidiOutGetDevCaps(uDeviceID uintptr) (lpMidiOutCaps *MIDIOUTCAPS, err error)

type MidiInError

type MidiInError uint32

func (MidiInError) Error

func (e MidiInError) Error() string

type MidiInProc

type MidiInProc func(hMidiIn uintptr, wMsg uint32, dwInstance, dwParam1, dwParam2 uintptr) uintptr

type MidiOutError

type MidiOutError uint32

func (MidiOutError) Error

func (e MidiOutError) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL