29 #define STATUS if (Voice::mVerbosity >= 4) qDebug() << "Instrument:" 30 #define MESSAGE if (Voice::mVerbosity >= 3) qDebug() << "Instrument:" 31 #define WARNING if (Voice::mVerbosity >= 2) qWarning()<<"Instrument: WARNING:" 32 #define ERROR if (Voice::mVerbosity >= 1) qCritical() << "Instrument: ERROR:" 79 STATUS <<
"Generate artificial sound";
87 QFile file(mFileName);
88 if (not file.open(QIODevice::ReadOnly))
Universal base class for threaded modules.
void generateArtificialSound(int samplerate)
bool mLoaded
Flag indicating that an instrument has been loaded.
bool stop() override final
Stop the instrument thread.
void loadInstrument(QString path)
Load or generate an instrument (voice)
bool read(QIODevice &iodevice)
bool mLoading
Flag indicating that an instrument is being loaded.
void showProgressBar(QVariant)
void setThreadName(const QString name)
Set thread name (Linux only)
QString mFileName
The file name from where the file is loaded.
virtual bool stop()
Stop the thread.
void signalLoadingFinished(bool)
Voice mVoice
The set of all samples.