mirror of
https://github.com/overte-org/overte.git
synced 2025-08-08 12:17:45 +02:00
add a property to Sound to tell if empty
This commit is contained in:
parent
1a895b9342
commit
92f2794ea8
1 changed files with 4 additions and 0 deletions
|
@ -17,10 +17,14 @@
|
||||||
|
|
||||||
class Sound : public QObject {
|
class Sound : public QObject {
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
|
|
||||||
|
Q_PROPERTY(bool empty READ isEmpty)
|
||||||
public:
|
public:
|
||||||
Sound(const QUrl& sampleURL, QObject* parent = NULL);
|
Sound(const QUrl& sampleURL, QObject* parent = NULL);
|
||||||
Sound(float volume, float frequency, float duration, float decay, QObject* parent = NULL);
|
Sound(float volume, float frequency, float duration, float decay, QObject* parent = NULL);
|
||||||
|
|
||||||
|
bool isEmpty() const { return _byteArray.isEmpty(); }
|
||||||
|
|
||||||
const QByteArray& getByteArray() { return _byteArray; }
|
const QByteArray& getByteArray() { return _byteArray; }
|
||||||
|
|
||||||
private:
|
private:
|
||||||
|
|
Loading…
Reference in a new issue