Ref T730, style and removed "old voice code"

This commit is contained in:
Klaus Basan
2019-10-02 00:36:28 +02:00
committed by Mat Sutcliffe
parent 8d84dcbe08
commit 6111c428e9
3 changed files with 6 additions and 52 deletions

View File

@@ -73,7 +73,7 @@ namespace BlackSound
m_pushTimer = new QTimer(this);
bool ok = connect(m_pushTimer, &QTimer::timeout, this, &CSoundGenerator::pushTimerExpired);
Q_ASSERT(ok);
Q_UNUSED(ok); // suppress Clang warning in release build
Q_UNUSED(ok) // suppress Clang warning in release build
m_pushTimer->start(20);
}
m_pushModeIODevice = m_audioOutput->start(); // push, IO device not owned
@@ -345,8 +345,8 @@ namespace BlackSound
qint64 CSoundGenerator::writeData(const char *data, qint64 len)
{
Q_UNUSED(data);
Q_UNUSED(len);
Q_UNUSED(data)
Q_UNUSED(len)
return 0;
}
@@ -454,7 +454,7 @@ namespace BlackSound
void CSoundGenerator::playFile(int volume, const QString &file, bool removeFileAfterPlaying)
{
if (!QFile::exists(file)) { return; }
Q_UNUSED(volume);
Q_UNUSED(volume)
QSound::play(file);
// I cannot delete the file here, only after it has been played
if (removeFileAfterPlaying) { new CTimedFileDeleter(file, 1000 * 60, QCoreApplication::instance()); }