# HG changeset patch # User Chris Cannam # Date 1252610361 0 # Node ID 1a30913e26bc6ac571d6b4d82fb8f68ecce0ece0 # Parent d7f3dfe6f9a44db543eb2c23428b173a06779622 * use dummy driver only for RtMidi on Solaris diff -r d7f3dfe6f9a4 -r 1a30913e26bc data/data.pro --- a/data/data.pro Thu Sep 10 18:44:45 2009 +0000 +++ b/data/data.pro Thu Sep 10 19:19:21 2009 +0000 @@ -15,9 +15,10 @@ MOC_DIR = tmp_moc # Set up suitable platform defines for RtMidi -linux*: DEFINES += __LINUX_ALSASEQ__ -macx*: DEFINES += __MACOSX_CORE__ -win*: DEFINES += __WINDOWS_MM__ +linux*: DEFINES += __LINUX_ALSASEQ__ +macx*: DEFINES += __MACOSX_CORE__ +win*: DEFINES += __WINDOWS_MM__ +solaris*: DEFINES += __RTMIDI_DUMMY_ONLY__ # Input HEADERS += fft/FFTapi.h \ diff -r d7f3dfe6f9a4 -r 1a30913e26bc data/midi/rtmidi/RtMidi.cpp --- a/data/midi/rtmidi/RtMidi.cpp Thu Sep 10 18:44:45 2009 +0000 +++ b/data/midi/rtmidi/RtMidi.cpp Thu Sep 10 19:19:21 2009 +0000 @@ -2193,3 +2193,72 @@ } #endif // __WINDOWS_MM__ + +#ifdef __RTMIDI_DUMMY_ONLY__ + +void RtMidiIn :: initialize( const std::string& /*clientName*/ ) +{ +} + +void RtMidiIn :: openPort( unsigned int portNumber, const std::string /*portName*/ ) +{ +} + +void RtMidiIn :: openVirtualPort( std::string portName ) +{ +} + +void RtMidiIn :: closePort( void ) +{ +} + +RtMidiIn :: ~RtMidiIn() +{ +} + +unsigned int RtMidiIn :: getPortCount() +{ + return 0; +} + +std::string RtMidiIn :: getPortName( unsigned int portNumber ) +{ + return ""; +} + +unsigned int RtMidiOut :: getPortCount() +{ + return 0; +} + +std::string RtMidiOut :: getPortName( unsigned int portNumber ) +{ + return ""; +} + +void RtMidiOut :: initialize( const std::string& /*clientName*/ ) +{ +} + +void RtMidiOut :: openPort( unsigned int portNumber, const std::string /*portName*/ ) +{ +} + +void RtMidiOut :: closePort( void ) +{ +} + +void RtMidiOut :: openVirtualPort( std::string portName ) +{ +} + +RtMidiOut :: ~RtMidiOut() +{ +} + +void RtMidiOut :: sendMessage( std::vector *message ) +{ +} + +#endif __RTMIDI_DUMMY_ONLY__ +