mirror of
https://github.com/overte-org/overte.git
synced 2025-08-06 17:00:13 +02:00
emit a ready signal if Sound has downloaded
This commit is contained in:
parent
3fa0bcbcd9
commit
52716b8f95
2 changed files with 4 additions and 0 deletions
|
@ -86,6 +86,7 @@ void Sound::downloadFinished(const QByteArray& data) {
|
||||||
}
|
}
|
||||||
|
|
||||||
_isReady = true;
|
_isReady = true;
|
||||||
|
emit ready();
|
||||||
}
|
}
|
||||||
|
|
||||||
void Sound::downSample(const QByteArray& rawAudioByteArray) {
|
void Sound::downSample(const QByteArray& rawAudioByteArray) {
|
||||||
|
|
|
@ -30,6 +30,9 @@ public:
|
||||||
|
|
||||||
const QByteArray& getByteArray() { return _byteArray; }
|
const QByteArray& getByteArray() { return _byteArray; }
|
||||||
|
|
||||||
|
signals:
|
||||||
|
void ready();
|
||||||
|
|
||||||
private:
|
private:
|
||||||
QByteArray _byteArray;
|
QByteArray _byteArray;
|
||||||
bool _isStereo;
|
bool _isStereo;
|
||||||
|
|
Loading…
Reference in a new issue