Version 4.3.1

This commit is contained in:
Gary Scavone
2009-03-24 23:02:17 -04:00
committed by Stephen Sinclair
parent 27d9b79dc7
commit d199342e86
105 changed files with 3455 additions and 12232 deletions

View File

@@ -8,7 +8,7 @@
RtMidi WWW site: http://music.mcgill.ca/~gary/rtmidi/
RtMidi: realtime MIDI i/o C++ classes
Copyright (c) 2003-2005 Gary P. Scavone
Copyright (c) 2003-2007 Gary P. Scavone
Permission is hereby granted, free of charge, to any person
obtaining a copy of this software and associated documentation files
@@ -35,7 +35,7 @@
*/
/**********************************************************************/
// RtMidi: Version 1.0.5, in development
// RtMidi: Version 1.0.7
#include "RtMidi.h"
#include <sstream>
@@ -768,12 +768,9 @@ extern "C" void *alsaMidiHandler( void *ptr )
else
message.bytes.insert( message.bytes.end(), buffer, &buffer[nBytes] );
if ( ev->type == SND_SEQ_EVENT_SYSEX && message.bytes.back() == 0xF7 )
continueSysex = false;
else {
continueSysex = true;
continueSysex = ( ev->type == SND_SEQ_EVENT_SYSEX && message.bytes.back() != 0xF7 );
if ( continueSysex )
break;
}
// Calculate the time stamp:
message.timeStamp = 0.0;
@@ -1926,7 +1923,7 @@ std::string RtMidiIn :: getPortName( unsigned int portNumber )
}
MIDIINCAPS deviceCaps;
MMRESULT result = midiInGetDevCaps( portNumber, &deviceCaps, sizeof(MIDIINCAPS));
midiInGetDevCaps( portNumber, &deviceCaps, sizeof(MIDIINCAPS));
// For some reason, we need to copy character by character with
// UNICODE (thanks to Eduardo Coutinho!).
@@ -1960,7 +1957,7 @@ std::string RtMidiOut :: getPortName( unsigned int portNumber )
}
MIDIOUTCAPS deviceCaps;
MMRESULT result = midiOutGetDevCaps( portNumber, &deviceCaps, sizeof(MIDIOUTCAPS));
midiOutGetDevCaps( portNumber, &deviceCaps, sizeof(MIDIOUTCAPS));
// For some reason, we need to copy character by character with
// UNICODE (thanks to Eduardo Coutinho!).