From 9c2615425bb4f35a417eb04b1ceebfc77d8e2c8b Mon Sep 17 00:00:00 2001 From: "Matthias P. Braendli" Date: Sat, 7 Oct 2017 10:39:51 +0200 Subject: Move fault_detected() into common input interface --- src/AlsaInput.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/AlsaInput.h') diff --git a/src/AlsaInput.h b/src/AlsaInput.h index 7f88341..08ccbf6 100644 --- a/src/AlsaInput.h +++ b/src/AlsaInput.h @@ -100,6 +100,8 @@ class AlsaInputDirect : public AlsaInput virtual void prepare(void) override; + virtual bool fault_detected(void) const override { return false; }; + /*! Read length Bytes from from the alsa device. * length must be a multiple of channels * bytes_per_sample. * @@ -131,7 +133,7 @@ class AlsaInputThreaded : public AlsaInput /*! Start the ALSA thread that fills the queue */ virtual void prepare(void) override; - bool fault_detected() const { return m_fault; }; + virtual bool fault_detected(void) const override { return m_fault; }; private: void process(); -- cgit v1.2.3