blob: d1e62aaf45149d12ed72a383d088dfbbc9d93580 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
|
#ifndef __ardour_latent_h__
#define __ardour_latent_h__
#include "ardour/types.h"
namespace ARDOUR {
class Latent {
public:
Latent() : _own_latency (0), _user_latency (0) {}
virtual ~Latent() {}
virtual nframes_t signal_latency() const = 0;
nframes_t user_latency () const { return _user_latency; }
nframes_t effective_latency() const {
if (_user_latency) {
return _user_latency;
} else {
return signal_latency ();
}
}
virtual void set_latency_delay (nframes_t val) { _own_latency = val; }
virtual void set_user_latency (nframes_t val) { _user_latency = val; }
protected:
nframes_t _own_latency;
nframes_t _user_latency;
};
}
#endif /* __ardour_latent_h__*/
|