13
0

Remove unused backend API

This commit is contained in:
Robin Gareus 2023-06-21 23:59:49 +02:00
parent 92b86d8dd6
commit a10e3edb53
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04
3 changed files with 0 additions and 27 deletions

View File

@ -562,10 +562,6 @@ public:
virtual uint32_t systemic_midi_input_latency (std::string const) const = 0;
virtual uint32_t systemic_midi_output_latency (std::string const) const = 0;
/* defaults as reported by device driver */
virtual uint32_t systemic_hw_input_latency () const { return 0; }
virtual uint32_t systemic_hw_output_latency () const { return 0; }
virtual uint32_t period_size () const { return 0; }
/** override this if this implementation returns true from

View File

@ -450,26 +450,6 @@ CoreAudioBackend::systemic_output_latency () const
return _systemic_audio_output_latency;
}
uint32_t
CoreAudioBackend::systemic_hw_input_latency () const
{
return 0;
if (name_to_id (_input_audio_device) != UINT32_MAX) {
return _pcmio->get_latency(name_to_id(_input_audio_device, Input), true);
}
return 0;
}
uint32_t
CoreAudioBackend::systemic_hw_output_latency () const
{
return 0;
if (name_to_id (_output_audio_device) != UINT32_MAX) {
return _pcmio->get_latency(name_to_id(_output_audio_device, Output), false);
}
return 0;
}
/* MIDI */
std::vector<std::string>

View File

@ -207,9 +207,6 @@ class CoreAudioBackend : public AudioBackend, public PortEngineSharedImpl {
uint32_t systemic_midi_input_latency (std::string const) const { return 0; }
uint32_t systemic_midi_output_latency (std::string const) const { return 0; }
uint32_t systemic_hw_input_latency () const;
uint32_t systemic_hw_output_latency () const;
bool can_set_systemic_midi_latencies () const { return false; /* XXX */}
/* External control app */