mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-03 07:35:48 +08:00
Sound generator: fixed some methods visibility and missing virtual keyword
This commit is contained in:
committed by
Mathew Sutcliffe
parent
7b0dff1af5
commit
26b1193e3e
@@ -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<Tone> &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 */
|
||||
|
||||
Reference in New Issue
Block a user