BASS.NET API for the Un4seen BASS Audio LibraryMidiInputDeviceMessageFilter Property BASS.NET API for the Un4seen BASS Audio Library
Gets or Sets the filter to be applied (messages types which should be suppressed).

Namespace: radio42.Multimedia.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.12.0
Syntax

public MIDIMessageType MessageFilter { get; set; }

Property Value

Type: MIDIMessageType
Remarks

By default all MIDIMessageType messages will raise the MessageReceived event.

You might combine any value of the MIDIMessageType enumeration in order to suppresses certain messages (e.g. to not process real-time messages).

Examples

Suppress all real-time and system-exclusive messages:
VB
Private _inDevice As MidiInputDevice = Nothing
...
_inDevice = New MidiInputDevice(0)
_inDevice.AutoPairController = True
_inDevice.MessageFilter = MIDIMessageType.SystemRealtime Or MIDIMessageType.SystemExclusive
AddHandler _inDevice.MessageReceived, AddressOf InDevice_MessageReceived
If _inDevice.Open() Then
  _inDevice.Start()
End If
private MidiInputDevice _inDevice = null;
...
_inDevice = new MidiInputDevice(0);
_inDevice.AutoPairController = true;
_inDevice.MessageFilter = MIDIMessageType.SystemRealtime | MIDIMessageType.SystemExclusive;
_inDevice.MessageReceived += new MidiMessageEventHandler(InDevice_MessageReceived);
if ( _inDevice.Open() )
    _inDevice.Start();
...
See Also

Reference