Move file suffixes out of the Session class and into filename_extensions.h/cc
[ardour.git] / libs / ardour / ardour / port.h
index 769e1fe98d3ccd3be9976a544734e7cebe9993bd..cae198758b3bb29916f31e8d2fa3570411c4f1a7 100644 (file)
@@ -15,7 +15,6 @@
     along with this program; if not, write to the Free Software
     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
 
-    $Id$
 */
 
 #ifndef __ardour_port_h__
@@ -42,15 +41,11 @@ class Port : public sigc::trackable {
 
        virtual DataType type() const = 0;
 
-       virtual void cycle_start(jack_nframes_t nframes) {}
+       virtual void cycle_start(nframes_t nframes) {}
        virtual void cycle_end() {}
 
        virtual Buffer& get_buffer() = 0;
        
-       /** Silence/Empty the port, output ports only */
-       virtual void silence (jack_nframes_t nframes, jack_nframes_t offset) = 0;
-
-
        std::string name() const { 
                return _name;
        }
@@ -106,27 +101,28 @@ class Port : public sigc::trackable {
        }
        
        void ensure_monitor_input (bool yn) {
-               jack_port_request_monitor (_port, yn);
+
+#ifdef HAVE_JACK_PORT_ENSURE_MONITOR
+               jack_port_ensure_monitor (_port, yn);
+#else
+               jack_port_request_monitor(_port, yn);
+#endif
+
        }
-       
+
+       /*XXX completely bloody useless imho*/
        void request_monitor_input (bool yn) {
                jack_port_request_monitor (_port, yn);
        }
 
-       jack_nframes_t latency () const {
+       nframes_t latency () const {
                return jack_port_get_latency (_port);
        }
 
-       void set_latency (jack_nframes_t nframes) {
+       void set_latency (nframes_t nframes) {
                jack_port_set_latency (_port, nframes);
        }
 
-       bool is_silent() const { return _silent; }
-
-       void mark_silence (bool yn) {
-               _silent = yn;
-       }
-       
        sigc::signal<void,bool> MonitorInputChanged;
        sigc::signal<void,bool> ClockSyncChanged;
 
@@ -149,7 +145,6 @@ class Port : public sigc::trackable {
        unsigned short _metering;
 
        bool          _last_monitor : 1;
-       bool          _silent : 1;
 };
  
 } // namespace ARDOUR