Sets an event filtering function on a MIDI stream.
Namespace: Un4seen.Bass.AddOn.Midi
Assembly: Bass.Net (in Bass.Net.dll) Version: 2.4.17.5
Syntax
[DllImportAttribute("bassmidi")] public static bool BASS_MIDI_StreamSetFilter( int handle, bool seeking, MIDIFILTERPROC proc, IntPtr user )
Parameters
- handle
- Type: SystemInt32
The MIDI stream handle. - seeking
- Type: SystemBoolean
Also filter events when seeking? - proc
- Type: Un4seen.Bass.AddOn.MidiMIDIFILTERPROC
The callback function... = no filtering. - user
- Type: SystemIntPtr
User instance data to pass to the callback function.
Return Value
Type: BooleanIf successful, is returned, else is returned. Use BASS_ErrorGetCode to get the error code.
Remarks
Filtering only applies to a MIDI stream's defined event sequence, not any events that are applied via BASS_MIDI_StreamEvent(Int32, Int32, BASSMIDIEvent, Int32) or BASS_MIDI_StreamEvents(Int32, BASSMIDIEventMode, BASS_MIDI_EVENT, Int32).
ERROR CODE | Description |
---|---|
BASS_ERROR_HANDLE | handle is not valid. |
BASS_ERROR_NOTAVAIL | The stream does not have an event sequence. |
See Also