diff options
Diffstat (limited to 'libs/surfaces/mackie/surface_port.cc')
-rw-r--r-- | libs/surfaces/mackie/surface_port.cc | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/libs/surfaces/mackie/surface_port.cc b/libs/surfaces/mackie/surface_port.cc index f0cdbdbe98..e74ae93841 100644 --- a/libs/surfaces/mackie/surface_port.cc +++ b/libs/surfaces/mackie/surface_port.cc @@ -71,7 +71,7 @@ MidiByteArray SurfacePort::read() if ( !lock.locked() ) { - //cout << "SurfacePort::read not locked" << endl; + cout << "SurfacePort::read not locked" << endl; return retval; } @@ -101,13 +101,18 @@ MidiByteArray SurfacePort::read() throw MackieControlException( os.str() ); } } +#ifdef DEBUG + cout << "SurfacePort::read: " << retval << endl; +#endif return retval; } void SurfacePort::write( const MidiByteArray & mba ) { +#ifdef DEBUG //if ( mba[0] == 0xf0 ) cout << "SurfacePort::write: " << mba << endl; - //cout << "SurfacePort::write: " << mba << endl; + cout << "SurfacePort::write: " << mba << endl; +#endif // check active before and after lock - to make sure // that the destructor doesn't destroy the mutex while @@ -130,7 +135,9 @@ void SurfacePort::write( const MidiByteArray & mba ) throw MackieControlException( os.str() ); } } - //if ( mba[0] == 0xf0 ) cout << "SurfacePort::write " << count << endl; +#ifdef DEBUG + if ( mba[0] == 0xf0 ) cout << "SurfacePort::write " << count << endl; +#endif } void SurfacePort::write_sysex( const MidiByteArray & mba ) |