Remove unused methods (to query public latency)

This commit is contained in:
Robin Gareus 2021-02-19 13:56:47 +01:00
parent c379a6f6b6
commit e6bbcd415d
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 6 additions and 2 deletions

View File

@ -120,7 +120,6 @@ public:
bool physically_connected () const;
samplecnt_t latency () const;
samplecnt_t public_latency () const;
samplecnt_t connected_latency (bool for_playback) const;
void set_private_port_latencies (samplecnt_t value, bool playback);

View File

@ -1289,6 +1289,7 @@ IO::latency () const
return max_latency;
}
#if 0 // not used, but may some day be handy for debugging
samplecnt_t
IO::public_latency () const
{
@ -1312,6 +1313,7 @@ IO::public_latency () const
((_direction == Output) ? "PLAYBACK" : "CAPTURE")));
return max_latency;
}
#endif
samplecnt_t
IO::connected_latency (bool for_playback) const

View File

@ -433,9 +433,9 @@ Port::private_latency_range (bool playback) const
LatencyRange
Port::public_latency_range (bool /*playback*/) const
{
/*Note: this method is no longer used. It exists purely for debugging reasons */
LatencyRange r;
if (_port_handle) {
r = port_engine.get_latency_range (_port_handle, sends_output() ? true : false);
if (externally_connected () && 0 == (_flags & TransportSyncPort)) {
@ -443,10 +443,13 @@ Port::public_latency_range (bool /*playback*/) const
r.min /= _speed_ratio;
r.max /= _speed_ratio;
#endif
#if 0
/* use value as set by set_public_latency_range */
if (type () == DataType::AUDIO) {
r.min += (_resampler_quality - 1);
r.max += (_resampler_quality - 1);
}
#endif
}
DEBUG_TRACE (DEBUG::LatencyIO, string_compose (