Method | Description | |
---|---|---|
Close ( ) : void |
Closes this input device.
|
|
Open ( ) : void |
Opens this input device. Note that Open() establishes a connection to the device, but no messages will be received until StartReceiving is called. |
|
RemoveAllEventHandlers ( ) : void |
Removes all event handlers from the input events on this device.
|
|
StartReceiving ( Clock clock ) : void | ||
StartReceiving ( Clock clock, bool handleSysEx ) : void | ||
StopReceiving ( ) : void |
Stops this input device from receiving messages. This method waits for all in-progress input event handlers to finish, and then joins (shuts down) the background thread that was created in StartReceiving. Thus, when this function returns you can be sure that no more event handlers will be invoked. It is illegal to call this method from an input event handler (ie, from the background thread), and doing so throws an exception. If an event handler really needs to call this method, consider using BeginInvoke to schedule it on another thread. |
|
UpdateInstalledDevices ( ) : void |
Refresh the list of input devices
|
Method | Description | |
---|---|---|
CheckNotOpen ( ) : void |
Throws a MidiDeviceException if this device is open.
|
|
CheckNotReceiving ( ) : void |
Throws a MidiDeviceException if this device is receiving.
|
|
CheckOpen ( ) : void |
Throws a MidiDeviceException if this device is not open.
|
|
CheckReceiving ( ) : void |
Throws a MidiDeviceException if this device is not receiving.
|
|
CheckReturnCode ( Win32API rc ) : void |
Makes sure rc is MidiWin32Wrapper.MMSYSERR_NOERROR. If not, throws an exception with an appropriate error message.
|
|
CreateLongMsgBuffer ( ) : |
||
DestroyLongMsgBuffer ( |
Releases the resources associated with the specified MidiHeader pointer.
|
|
InputCallback ( Win32API hMidiIn, Win32API wMsg, |
The input callback for midiOutOpen.
|
|
InputDevice ( |
Private Constructor, only called by the getter for the InstalledDevices property.
|
|
MakeDeviceList ( ) : Midi.InputDevice[] |
Private method for constructing the array of MidiInputDevices by calling the Win32 api.
|
|
RecycleLongMsgBuffer ( |
public StartReceiving ( Clock clock, bool handleSysEx ) : void | ||
clock | Clock | |
handleSysEx | bool | |
return | void |
public static UpdateInstalledDevices ( ) : void | ||
return | void |