summaryrefslogtreecommitdiff
path: root/src/audiofile.h
diff options
context:
space:
mode:
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__*/