# HG changeset patch # User Chris Cannam # Date 1543239736 0 # Mon Nov 26 13:42:16 2018 +0000 # Node ID 8c4162878ae6f783d8585b7cc8b551954ecc04f1 # Parent b5e34fdc1716042502184529a4b08a11d92fcb69 Use override diff --git a/bqaudioio/ResamplerWrapper.h b/bqaudioio/ResamplerWrapper.h --- a/bqaudioio/ResamplerWrapper.h +++ b/bqaudioio/ResamplerWrapper.h @@ -89,24 +89,24 @@ // These functions are passed through to the wrapped // ApplicationPlaybackSource - virtual std::string getClientName() const; - virtual int getApplicationSampleRate() const; - virtual int getApplicationChannelCount() const; + std::string getClientName() const override; + int getApplicationSampleRate() const override; + int getApplicationChannelCount() const override; - virtual void setSystemPlaybackBlockSize(int); - virtual void setSystemPlaybackSampleRate(int); - virtual void setSystemPlaybackChannelCount(int); - virtual void setSystemPlaybackLatency(int); + void setSystemPlaybackBlockSize(int) override; + void setSystemPlaybackSampleRate(int) override; + void setSystemPlaybackChannelCount(int) override; + void setSystemPlaybackLatency(int) override; - virtual void setOutputLevels(float peakLeft, float peakRight); - virtual void audioProcessingOverload(); + void setOutputLevels(float peakLeft, float peakRight) override; + void audioProcessingOverload() override; /** * Request some samples from the wrapped * ApplicationPlaybackSource, resample them if necessary, and * return them to the target */ - virtual int getSourceSamples(float *const *samples, int nchannels, int nframes); + int getSourceSamples(float *const *samples, int nchannels, int nframes) override; private: ApplicationPlaybackSource *m_source; diff --git a/src/JACKAudioIO.h b/src/JACKAudioIO.h --- a/src/JACKAudioIO.h +++ b/src/JACKAudioIO.h @@ -60,13 +60,13 @@ static std::vector getRecordDeviceNames(); static std::vector getPlaybackDeviceNames(); - virtual bool isSourceOK() const; - virtual bool isTargetOK() const; + bool isSourceOK() const override; + bool isTargetOK() const override; - virtual void suspend() {} - virtual void resume() {} + void suspend() override {} + void resume() override {} - virtual double getCurrentTime() const; + double getCurrentTime() const override; std::string getStartupErrorString() const { return m_startupError; } diff --git a/src/PulseAudioIO.h b/src/PulseAudioIO.h --- a/src/PulseAudioIO.h +++ b/src/PulseAudioIO.h @@ -65,15 +65,15 @@ static std::vector getRecordDeviceNames(); static std::vector getPlaybackDeviceNames(); - virtual bool isSourceOK() const; - virtual bool isSourceReady() const; - virtual bool isTargetOK() const; - virtual bool isTargetReady() const; + bool isSourceOK() const override; + bool isSourceReady() const override; + bool isTargetOK() const override; + bool isTargetReady() const override; - virtual double getCurrentTime() const; + double getCurrentTime() const override; - virtual void suspend(); - virtual void resume(); + void suspend() override; + void resume() override; std::string getStartupErrorString() const { return m_startupError; }