13
0

Add API to query hardware latency (as reported by the driver)

So far only MacOS/X CoreAudio supports this. This is intended
for defualt values in case a user has not callibrated the device, yet.
This commit is contained in:
Robin Gareus 2020-02-24 04:24:12 +01:00
parent f79ae05a93
commit 53a6c24147
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -554,6 +554,10 @@ 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