diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-04-07 15:40:10 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-04-07 15:40:10 +0000 |
commit | 73b4506d2b025ba4916fc00ea6361c0343d18344 (patch) | |
tree | 270678d37dd1b8b24455f5eb968721921f6896ab /libs | |
parent | 7b1576b59d388309017f9e058b684810cbb091d3 (diff) |
move deprecated JACK latency API out of port.h so that deprecation messages don't spam everything
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@9321 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r-- | libs/ardour/ardour/port.h | 9 | ||||
-rw-r--r-- | libs/ardour/port.cc | 12 |
2 files changed, 13 insertions, 8 deletions
diff --git a/libs/ardour/ardour/port.h b/libs/ardour/ardour/port.h index 9cf14d91d9..ef4d92b39f 100644 --- a/libs/ardour/ardour/port.h +++ b/libs/ardour/ardour/port.h @@ -145,13 +145,8 @@ class Port : public sigc::trackable { jack_port_request_monitor (_port, yn); } - nframes_t latency () const { - return jack_port_get_latency (_port); - } - - void set_latency (nframes_t nframes) { - jack_port_set_latency (_port, nframes); - } + nframes_t latency () const; + void set_latency (nframes_t nframes); sigc::signal<void,bool> MonitorInputChanged; sigc::signal<void,bool> ClockSyncChanged; diff --git a/libs/ardour/port.cc b/libs/ardour/port.cc index f218cbc914..00603c95b9 100644 --- a/libs/ardour/port.cc +++ b/libs/ardour/port.cc @@ -63,4 +63,14 @@ Port::set_name (string str) return ret; } - +nframes_t +Port::latency () const +{ + return jack_port_get_latency (_port); +} + +void +Port::set_latency (nframes_t nframes) +{ + jack_port_set_latency (_port, nframes); +} |