From 26b1193e3ef7da2ea4427b64b362173076e86ab2 Mon Sep 17 00:00:00 2001 From: Klaus Basan Date: Wed, 5 Feb 2014 20:58:09 +0000 Subject: [PATCH] Sound generator: fixed some methods visibility and missing virtual keyword --- src/blacksound/soundgenerator.h | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/src/blacksound/soundgenerator.h b/src/blacksound/soundgenerator.h index 2366fa95e..04e123524 100644 --- a/src/blacksound/soundgenerator.h +++ b/src/blacksound/soundgenerator.h @@ -75,18 +75,18 @@ namespace BlackSound /*! * \copydoc QIODevice::readData() */ - qint64 readData(char *data, qint64 maxlen); + virtual qint64 readData(char *data, qint64 maxlen); /*! * \copydoc QIODevice::writeData() * \remarks NOT(!) used here */ - qint64 writeData(const char *data, qint64 len); + virtual qint64 writeData(const char *data, qint64 len); /*! * \copydoc QIODevice::bytesAvailable() */ - qint64 bytesAvailable() const; + virtual qint64 bytesAvailable() const; /*! * \copydoc QIODevice::seek() @@ -104,14 +104,6 @@ namespace BlackSound return this->m_endReached ? true : QIODevice::atEnd(); } - /*! - * \brief One cycle of tones takes t milliseconds - */ - qint64 oneCycleDurationMs() const - { - return this->m_oneCycleDurationMs; - } - /*! * \brief Default audio format fo play these sounds * \return @@ -139,6 +131,14 @@ namespace BlackSound */ void generateData(const QAudioFormat &format, const QList &tones); + /*! + * \brief One cycle of tones takes t milliseconds + */ + qint64 oneCycleDurationMs() const + { + return this->m_oneCycleDurationMs; + } + private: qint64 m_position; /*!< position in buffer */ bool m_singlePlay; /*!< end data provisioning after playing all tones */