summaryrefslogtreecommitdiff
path: root/src/audiofile.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-01-26 08:42:18 +0100
committerBent Bisballe Nyeng <deva@aasimon.org>2013-01-26 08:42:18 +0100
commitcb220c27929600ff7a1980bbe421290e39b2eddc (patch)
treeba817c8081e21f0bbd1bfe7042e7ce962bf2e35f /src/audiofile.h
parent06842ff2d9c727fe46f5da82ae1e43e74be6e588 (diff)
Background loader for audio files.
Diffstat (limited to 'src/audiofile.h')
-rw-r--r--src/audiofile.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/audiofile.h b/src/audiofile.h
index 53fe2a7..17ff651 100644
--- a/src/audiofile.h
+++ b/src/audiofile.h
@@ -30,6 +30,7 @@
#include <string>
#include <map>
+#include "mutex.h"
#include "audio.h"
class AudioFile {
@@ -40,10 +41,16 @@ public:
void load();
void unload();
+ bool isLoaded();
+
sample_t *data;
size_t size;
std::string filename;
+
+private:
+ Mutex mutex;
+ bool is_loaded;
};
#endif/*__DRUMGIZMO_AUDIOFILE_H__*/