diff options
| author | Gary Scavone <gary@music.mcgill.ca> | 2014-11-03 22:49:20 -0500 |
|---|---|---|
| committer | Gary Scavone <gary@music.mcgill.ca> | 2014-11-03 22:49:20 -0500 |
| commit | 1690808587a5378004fd0562b0e36934ae46c5f3 (patch) | |
| tree | c49ca18d4ca5fa4094f0df6778f3bbddd801d8c0 | |
| parent | c39bb17ab47499fc9827abc100b94fb8c71715ed (diff) | |
Fixed typo with firstErrorOccurred_ variable.
| -rw-r--r-- | RtMidi.cpp | 13 |
1 files changed, 3 insertions, 10 deletions
@@ -242,14 +242,14 @@ void MidiApi :: error( RtMidiError::Type type, std::string errorString ) { if ( errorCallback_ ) { - if ( firstErrorOccured_ ) + if ( firstErrorOccurred_ ) return; - firstErrorOccured_ = true; + firstErrorOccurred_ = true; const std::string errorMessage = errorString; errorCallback_( type, errorMessage, errorCallbackUserData_); - firstErrorOccured_ = false; + firstErrorOccurred_ = false; return; } @@ -988,13 +988,6 @@ void MidiOutCore :: openVirtualPort( std::string portName ) data->endpoint = endpoint; } -// Not necessary if we don't treat sysex messages any differently than -// normal messages ... see below. -static void sysexCompletionProc( MIDISysexSendRequest *sreq ) -{ - free( sreq ); -} - void MidiOutCore :: sendMessage( std::vector<unsigned char> *message ) { // We use the MIDISendSysex() function to asynchronously send sysex |
