Don't move automation to follow region when a region has only been trimmed rather...
[ArdourMidi.git] / libs / ardour / ardour / latent.h
blobd1e62aaf45149d12ed72a383d088dfbbc9d93580
1 #ifndef __ardour_latent_h__
2 #define __ardour_latent_h__
4 #include "ardour/types.h"
6 namespace ARDOUR {
8 class Latent {
9 public:
10 Latent() : _own_latency (0), _user_latency (0) {}
11 virtual ~Latent() {}
13 virtual nframes_t signal_latency() const = 0;
14 nframes_t user_latency () const { return _user_latency; }
16 nframes_t effective_latency() const {
17 if (_user_latency) {
18 return _user_latency;
19 } else {
20 return signal_latency ();
24 virtual void set_latency_delay (nframes_t val) { _own_latency = val; }
25 virtual void set_user_latency (nframes_t val) { _user_latency = val; }
27 protected:
28 nframes_t _own_latency;
29 nframes_t _user_latency;
34 #endif /* __ardour_latent_h__*/