mirror of
https://github.com/overte-org/overte.git
synced 2025-04-22 17:33:28 +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 {
|
||||
Q_OBJECT
|
||||
|
||||
Q_PROPERTY(bool empty READ isEmpty)
|
||||
public:
|
||||
Sound(const QUrl& sampleURL, 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; }
|
||||
|
||||
private:
|
||||
|
|
Loading…
Reference in a new issue