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__
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;
}
}
void ensure_monitor_input (bool 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*/
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;
unsigned short _metering;
bool _last_monitor : 1;
- bool _silent : 1;
};
} // namespace ARDOUR