changeset 609:1a30913e26bc

* use dummy driver only for RtMidi on Solaris
author Chris Cannam
date Thu, 10 Sep 2009 19:19:21 +0000
parents d7f3dfe6f9a4
children 0a9e960fca53
files data/data.pro data/midi/rtmidi/RtMidi.cpp
diffstat 2 files changed, 73 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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 \
--- 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<unsigned char> *message )
+{
+}
+
+#endif __RTMIDI_DUMMY_ONLY__
+