C# Class Midi.Win32API

C# wrappers for the Win32 MIDI API.
显示文件 Open project: jstnryan/midi-dot-net

Public Methods

Method Description
midiInGetDevCaps ( UIntPtr uDeviceID, MIDIINCAPS &caps ) : MMRESULT

Fills in the capabilities struct for a specific input device.

midiInGetErrorText ( MMRESULT mmrError, StringBuilder lpText ) : MMRESULT

Gets the error text for a return code related to an input device.

midiInOpen ( HMIDIIN &lphMidiIn, UIntPtr uDeviceID, MidiInProc dwCallback, UIntPtr dwCallbackInstance ) : MMRESULT

Opens a MIDI input device.

midiOutGetDevCaps ( UIntPtr uDeviceID, MIDIOUTCAPS &caps ) : MMRESULT

Fills in the capabilities struct for a specific output device.

midiOutGetErrorText ( MMRESULT mmrError, StringBuilder lpText ) : MMRESULT

Gets the error text for a return code related to an output device.

midiOutOpen ( HMIDIOUT &lphmo, UIntPtr uDeviceID, MidiOutProc dwCallback, UIntPtr dwCallbackInstance ) : MMRESULT

Opens a MIDI output device.

Private Methods

Method Description
midiInAddBuffer ( HMIDIIN hMidiIn, IntPtr lpMidiInHdr, UInt32 cbMidiInHdr ) : MMRESULT
midiInClose ( HMIDIIN hMidiIn ) : MMRESULT
midiInGetDevCaps ( UIntPtr uDeviceID, MIDIINCAPS &caps, UInt32 cbMidiInCaps ) : MMRESULT
midiInGetErrorText ( MMRESULT mmrError, StringBuilder lpText, UInt32 cchText ) : MMRESULT
midiInGetNumDevs ( ) : UInt32
midiInOpen ( HMIDIIN &lphMidiIn, UIntPtr uDeviceID, MidiInProc dwCallback, UIntPtr dwCallbackInstance, MidiOpenFlags dwFlags ) : MMRESULT
midiInPrepareHeader ( HMIDIIN hMidiIn, IntPtr headerPtr, UInt32 cbMidiInHdr ) : MMRESULT
midiInReset ( HMIDIIN hMidiIn ) : MMRESULT
midiInStart ( HMIDIIN hMidiIn ) : MMRESULT
midiInStop ( HMIDIIN hMidiIn ) : MMRESULT
midiInUnprepareHeader ( HMIDIIN hMidiIn, IntPtr headerPtr, UInt32 cbMidiInHdr ) : MMRESULT
midiOutClose ( HMIDIOUT hmo ) : MMRESULT
midiOutGetDevCaps ( UIntPtr uDeviceID, MIDIOUTCAPS &caps, UInt32 cbMidiOutCaps ) : MMRESULT
midiOutGetErrorText ( MMRESULT mmrError, StringBuilder lpText, UInt32 cchText ) : MMRESULT
midiOutGetNumDevs ( ) : UInt32
midiOutLongMsg ( HMIDIOUT hmo, IntPtr lpMidiOutHdr, UInt32 cbMidiOutHdr ) : MMRESULT
midiOutOpen ( HMIDIOUT &lphmo, UIntPtr uDeviceID, MidiOutProc dwCallback, UIntPtr dwCallbackInstance, MidiOpenFlags dwFlags ) : MMRESULT
midiOutPrepareHeader ( HMIDIOUT hmo, IntPtr lpMidiOutHdr, UInt32 cbMidiOutHdr ) : MMRESULT
midiOutReset ( HMIDIOUT hmo ) : MMRESULT
midiOutShortMsg ( HMIDIOUT hmo, UInt32 dwMsg ) : MMRESULT
midiOutUnprepareHeader ( HMIDIOUT hmo, IntPtr lpMidiOutHdr, UInt32 cbMidiOutHdr ) : MMRESULT

Method Details

midiInGetDevCaps() public static method

Fills in the capabilities struct for a specific input device.
public static midiInGetDevCaps ( UIntPtr uDeviceID, MIDIINCAPS &caps ) : MMRESULT
uDeviceID System.UIntPtr
caps MIDIINCAPS
return MMRESULT

midiInGetErrorText() public static method

Gets the error text for a return code related to an input device.
public static midiInGetErrorText ( MMRESULT mmrError, StringBuilder lpText ) : MMRESULT
mmrError MMRESULT
lpText StringBuilder
return MMRESULT

midiInOpen() public static method

Opens a MIDI input device.
public static midiInOpen ( HMIDIIN &lphMidiIn, UIntPtr uDeviceID, MidiInProc dwCallback, UIntPtr dwCallbackInstance ) : MMRESULT
lphMidiIn HMIDIIN
uDeviceID System.UIntPtr
dwCallback MidiInProc
dwCallbackInstance System.UIntPtr
return MMRESULT

midiOutGetDevCaps() public static method

Fills in the capabilities struct for a specific output device.
public static midiOutGetDevCaps ( UIntPtr uDeviceID, MIDIOUTCAPS &caps ) : MMRESULT
uDeviceID System.UIntPtr
caps MIDIOUTCAPS
return MMRESULT

midiOutGetErrorText() public static method

Gets the error text for a return code related to an output device.
public static midiOutGetErrorText ( MMRESULT mmrError, StringBuilder lpText ) : MMRESULT
mmrError MMRESULT
lpText StringBuilder
return MMRESULT

midiOutOpen() public static method

Opens a MIDI output device.
public static midiOutOpen ( HMIDIOUT &lphmo, UIntPtr uDeviceID, MidiOutProc dwCallback, UIntPtr dwCallbackInstance ) : MMRESULT
lphmo HMIDIOUT
uDeviceID System.UIntPtr
dwCallback MidiOutProc
dwCallbackInstance System.UIntPtr
return MMRESULT