Browse Source

Fix unused vars in rtmidi

tags/1.9.4
falkTX 11 years ago
parent
commit
5bc0590358
2 changed files with 12 additions and 12 deletions
  1. +1
    -1
      source/modules/rtaudio/Makefile
  2. +11
    -11
      source/modules/rtmidi/RtMidi.h

+ 1
- 1
source/modules/rtaudio/Makefile View File

@@ -8,7 +8,7 @@ include ../../Makefile.mk

# --------------------------------------------------------------

BUILD_CXX_FLAGS += $(RTAUDIO_FLAGS) -DHAVE_GETTIMEOFDAY -D__UNIX_JACK__ -I. -Iinclude -I.. -I../../includes
BUILD_CXX_FLAGS += $(RTAUDIO_FLAGS) -I. -Iinclude -I.. -I../../includes
LINK_FLAGS += $(RTAUDIO_LIBS) -L.. -ljackbridge

OBJS = RtAudio.cpp.o


+ 11
- 11
source/modules/rtmidi/RtMidi.h View File

@@ -644,32 +644,32 @@ class MidiOutWinKS: public MidiOutApi
class MidiInDummy: public MidiInApi
{
public:
MidiInDummy( const std::string clientName, unsigned int queueSizeLimit ) : MidiInApi( queueSizeLimit ) { errorString_ = "MidiInDummy: This class provides no functionality."; RtMidi::error( RtError::WARNING, errorString_ ); };
MidiInDummy( const std::string, unsigned int queueSizeLimit ) : MidiInApi( queueSizeLimit ) { errorString_ = "MidiInDummy: This class provides no functionality."; RtMidi::error( RtError::WARNING, errorString_ ); };
RtMidi::Api getCurrentApi( void ) { return RtMidi::RTMIDI_DUMMY; };
void openPort( unsigned int portNumber, const std::string portName ) {};
void openVirtualPort( const std::string portName ) {};
void openPort( unsigned int, const std::string ) {};
void openVirtualPort( const std::string ) {};
void closePort( void ) {};
unsigned int getPortCount( void ) { return 0; };
std::string getPortName( unsigned int portNumber ) { return ""; };
std::string getPortName( unsigned int ) { return ""; };

protected:
void initialize( const std::string& clientName ) {};
void initialize( const std::string& ) {};
};

class MidiOutDummy: public MidiOutApi
{
public:
MidiOutDummy( const std::string clientName ) { errorString_ = "MidiOutDummy: This class provides no functionality."; RtMidi::error( RtError::WARNING, errorString_ ); };
MidiOutDummy( const std::string ) { errorString_ = "MidiOutDummy: This class provides no functionality."; RtMidi::error( RtError::WARNING, errorString_ ); };
RtMidi::Api getCurrentApi( void ) { return RtMidi::RTMIDI_DUMMY; };
void openPort( unsigned int portNumber, const std::string portName ) {};
void openVirtualPort( const std::string portName ) {};
void openPort( unsigned int, const std::string ) {};
void openVirtualPort( const std::string ) {};
void closePort( void ) {};
unsigned int getPortCount( void ) { return 0; };
std::string getPortName( unsigned int portNumber ) { return ""; };
void sendMessage( std::vector<unsigned char> *message ) {};
std::string getPortName( unsigned int ) { return ""; };
void sendMessage( std::vector<unsigned char>* ) {};

protected:
void initialize( const std::string& clientName ) {};
void initialize( const std::string& ) {};
};

#endif


Loading…
Cancel
Save