PortInsert: remove old API to query latency

This commit is contained in:
Robin Gareus 2022-10-13 17:39:55 +02:00
parent c3697e1755
commit 061d44feff
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
2 changed files with 0 additions and 18 deletions

View File

@ -79,7 +79,6 @@ public:
MTDM* mtdm () const { return _mtdm; }
void set_measured_latency (samplecnt_t);
samplecnt_t latency () const;
samplecnt_t measured_latency () const {
return _measured_latency;

View File

@ -130,23 +130,6 @@ PortInsert::set_measured_latency (samplecnt_t n)
_measured_latency = n;
}
samplecnt_t
PortInsert::latency() const
{
/* because we deliver and collect within the same cycle,
all I/O is necessarily delayed by at least samples_per_cycle().
if the return port for insert has its own latency, we
need to take that into account too.
*/
if (_measured_latency == 0) {
return _session.engine().samples_per_cycle() + _input->latency();
} else {
return _measured_latency;
}
}
void
PortInsert::run (BufferSet& bufs, samplepos_t start_sample, samplepos_t end_sample, double speed, pframes_t nframes, bool)
{