/[svn]/linuxsampler/trunk/src/drivers/midi/MidiInputPort.h
ViewVC logotype

Diff of /linuxsampler/trunk/src/drivers/midi/MidiInputPort.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2426 by schoenebeck, Fri Mar 1 23:00:17 2013 UTC revision 2431 by schoenebeck, Mon Mar 4 15:12:48 2013 UTC
# Line 378  namespace LinuxSampler { Line 378  namespace LinuxSampler {
378               * Destructor               * Destructor
379               */               */
380              virtual ~MidiInputPort();              virtual ~MidiInputPort();
381                
382                /**
383                 * Takes a MIDI status byte (the first byte of each MIDI event) as
384                 * argument and returns the expected size of the associated MIDI
385                 * event according to the MIDI protocol. Returns -1 on invalid
386                 * status bytes AND on variable size events (SysEx events).
387                 *
388                 * This method can be used for drivers which have to deal with raw
389                 * MIDI data, like the CoreMIDI driver, which can receive MIDI
390                 * packets with more than one event per packet.
391                 *
392                 * This method handles "MIDI running status" as well. That is, in
393                 * case the supplied byte is not a status byte but a data byte,
394                 * it expects the event to be in "running status" and accordingly
395                 * uses the status byte of the previous event (processed by the
396                 * Dispatch*() methods).
397                 */
398                int expectedEventSize(unsigned char byte);
399    
400              friend class MidiInputDevice;              friend class MidiInputDevice;
401    

Legend:
Removed from v.2426  
changed lines
  Added in v.2431

  ViewVC Help
Powered by ViewVC