summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGary Scavone <gary@music.mcgill.ca>2014-11-03 22:49:20 -0500
committerGary Scavone <gary@music.mcgill.ca>2014-11-03 22:49:20 -0500
commit1690808587a5378004fd0562b0e36934ae46c5f3 (patch)
treec49ca18d4ca5fa4094f0df6778f3bbddd801d8c0
parentc39bb17ab47499fc9827abc100b94fb8c71715ed (diff)
Fixed typo with firstErrorOccurred_ variable.
-rw-r--r--RtMidi.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/RtMidi.cpp b/RtMidi.cpp
index 94b61d6..cb3fa02 100644
--- a/RtMidi.cpp
+++ b/RtMidi.cpp
@@ -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