Changeset 1873:587bd898bee5 in roaraudio


Ignore:
Timestamp:
05/23/09 16:53:39 (15 years ago)
Author:
phi
Branch:
default
Phase:
public
Message:

handle additioal data according to status byte

File:
1 edited

Legend:

Unmodified
Added
Removed
  • roard/midi.c

    r1872 r1873  
    240240 
    241241    switch (mes->type) { 
     242      case MIDI_TYPE_NOTE_ON: 
     243      case MIDI_TYPE_NOTE_OFF: 
     244        if ( need == 2 ) { 
     245         mes->kk = *data; 
     246        } else { 
     247         mes->vv = *data; 
     248        } 
     249       break; 
     250      case MIDI_TYPE_PA: 
     251      case MIDI_TYPE_CONTROLER: 
     252      case MIDI_TYPE_PROGRAM: 
     253      case MIDI_TYPE_MA: 
     254      case MIDI_TYPE_PB: 
     255      case MIDI_TYPE_SYSEX: 
     256       break; 
    242257    } 
    243258 
Note: See TracChangeset for help on using the changeset viewer.