summaryrefslogtreecommitdiffstats
path: root/src/AlsaInput.h
diff options
context:
space:
mode:
authorMatthias P. Braendli <matthias.braendli@mpb.li>2017-10-07 10:39:51 +0200
committerMatthias P. Braendli <matthias.braendli@mpb.li>2017-10-07 10:39:51 +0200
commit9c2615425bb4f35a417eb04b1ceebfc77d8e2c8b (patch)
tree6bc07553e7dcc56389d763f849f273bdf6d06681 /src/AlsaInput.h
parent68ee7799a4eeb4148cd4628113ebf9ea3f94a211 (diff)
downloadODR-AudioEnc-9c2615425bb4f35a417eb04b1ceebfc77d8e2c8b.tar.gz
ODR-AudioEnc-9c2615425bb4f35a417eb04b1ceebfc77d8e2c8b.tar.bz2
ODR-AudioEnc-9c2615425bb4f35a417eb04b1ceebfc77d8e2c8b.zip
Move fault_detected() into common input interface
Diffstat (limited to 'src/AlsaInput.h')
-rw-r--r--src/AlsaInput.h4
1 files changed, 3 insertions, 1 deletions
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();