mirror of
https://github.com/thestk/stk
synced 2026-01-18 07:01:53 +00:00
Added new versions of RtAudio and RtMidi, updated RtWvIn and RtWvOut for new API, updated demo project for new API.
This commit is contained in:
@@ -40,10 +40,10 @@ void midiCallback( double deltatime, std::vector< unsigned char > *bytes, void *
|
||||
// Parse the MIDI bytes ... only keep MIDI channel messages.
|
||||
if ( bytes->at(0) > 239 ) return;
|
||||
|
||||
register long type = bytes->at(0) & 0xF0;
|
||||
register int channel = bytes->at(0) & 0x0F;
|
||||
register long databyte1 = bytes->at(1);
|
||||
register long databyte2 = 0;
|
||||
long type = bytes->at(0) & 0xF0;
|
||||
int channel = bytes->at(0) & 0x0F;
|
||||
long databyte1 = bytes->at(1);
|
||||
long databyte2 = 0;
|
||||
if ( ( type != 0xC0 ) && ( type != 0xD0 ) ) {
|
||||
if ( bytes->size() < 3 ) return;
|
||||
databyte2 = bytes->at(2);
|
||||
|
||||
Reference in New Issue
Block a user