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 |
|
|