add a property to Sound to tell if empty

This commit is contained in:
Stephen Birarda 2014-04-18 14:26:56 -07:00
parent 1a895b9342
commit 92f2794ea8

View file

@ -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: