Don't display empty tabs in the port matrix.
[ardour.git] / libs / ardour / audio_port.cc
index f69d6685ff3b6c504f636711956aeb10cb75da24..71ec7c6289f201160d75c49d708761ea52a42279 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2006 Paul Davis 
+    Copyright (C) 2006 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
@@ -44,8 +44,8 @@ AudioPort::cycle_start (nframes_t nframes)
 
        /* get_buffer() must only be run on outputs here in cycle_start().
 
-          Inputs must be done in the correct processing order, which 
-          requires interleaving with route processing. that will 
+          Inputs must be done in the correct processing order, which
+          requires interleaving with route processing. that will
           happen when Port::get_buffer() is called.
        */
 
@@ -89,8 +89,8 @@ AudioPort::get_audio_buffer (nframes_t nframes, nframes_t offset)
                */
 
                _buffer->set_data ((Sample *) jack_port_get_buffer (_jack_port, nframes) + offset + _port_offset, nframes);
-       } 
-       
+       }
+
        /* output ports set their _buffer data information during ::cycle_start()
         */
 
@@ -98,8 +98,8 @@ AudioPort::get_audio_buffer (nframes_t nframes, nframes_t offset)
 }
 
 size_t
-AudioPort::raw_buffer_size(nframes_t nframes) const
+AudioPort::raw_buffer_size (nframes_t nframes) const
 {
-       return nframes * sizeof(float);
+       return nframes * sizeof (Sample);
 }