Remove unused methods (to query public latency)
This commit is contained in:
parent
c379a6f6b6
commit
e6bbcd415d
|
@ -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);
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue
Block a user