mirror of
https://github.com/overte-org/overte.git
synced 2025-07-23 17:24:58 +02:00
Made requested changes to PR10554
This commit is contained in:
parent
90d5b2a6d4
commit
cc57d28ccc
2 changed files with 3 additions and 3 deletions
|
@ -56,8 +56,8 @@ Sound::Sound(const QUrl& url, bool isStereo, bool isAmbisonic) :
|
||||||
void Sound::downloadFinished(const QByteArray& data) {
|
void Sound::downloadFinished(const QByteArray& data) {
|
||||||
// this is a QRunnable, will delete itself after it has finished running
|
// this is a QRunnable, will delete itself after it has finished running
|
||||||
SoundProcessor* soundProcessor = new SoundProcessor(_url, data, _isStereo, _isAmbisonic);
|
SoundProcessor* soundProcessor = new SoundProcessor(_url, data, _isStereo, _isAmbisonic);
|
||||||
connect(soundProcessor, SIGNAL(onSuccess(QByteArray, bool, bool, float)), SLOT(soundProcessSuccess(QByteArray, bool, bool, float)));
|
connect(soundProcessor, &SoundProcessor::onSuccess, this, &Sound::soundProcessSuccess);
|
||||||
connect(soundProcessor, SIGNAL(onError(int, QString)), SLOT(soundProcessError(int, QString)));
|
connect(soundProcessor, &SoundProcessor::onError, this, &Sound::soundProcessError);
|
||||||
QThreadPool::globalInstance()->start(soundProcessor);
|
QThreadPool::globalInstance()->start(soundProcessor);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -53,7 +53,7 @@ class SoundProcessor : public QObject, public QRunnable {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
public:
|
public:
|
||||||
SoundProcessor(const QUrl& url, const QByteArray& data, const bool stereo, const bool ambisonic)
|
SoundProcessor(const QUrl& url, const QByteArray& data, bool stereo, bool ambisonic)
|
||||||
: _url(url), _data(data), _isStereo(stereo), _isAmbisonic(ambisonic)
|
: _url(url), _data(data), _isStereo(stereo), _isAmbisonic(ambisonic)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue