summaryrefslogtreecommitdiff
path: root/src/audiofile.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2013-10-06 13:10:00 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2013-10-06 13:10:00 +0200
commit88a906395ba7d33ae563e70d8b94c855e3b5a573 (patch)
treeb0fa632b4c59d276b292407f79ee07aa9ef8dab8 /src/audiofile.h
parent5727436afe5a8b1b60d99863cfc939ee50d4c17e (diff)
Refactoring of AudioFile loading and message passing from engine to gui and vice versa.
Diffstat (limited to 'src/audiofile.h')
-rw-r--r--src/audiofile.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/src/audiofile.h b/src/audiofile.h
index 20ffdf3..8a190c1 100644
--- a/src/audiofile.h
+++ b/src/audiofile.h
@@ -36,7 +36,7 @@
#include "mutex.h"
#include "audio.h"
-#if 0
+/*
Plan for lazy loading of audio (Brainstorming)
* Encapsulate data array?
- Speed issues?
@@ -63,9 +63,9 @@
| --------- | |
Wave Into --> | SndFile | <----- Read data (directly from array)
---------
-#endif/*0*/
+*/
-#define LAZYLOAD
+//#define LAZYLOAD
#define ALL_SAMPLES -1
@@ -95,13 +95,12 @@ public:
#endif/*LAZYLOAD*/
bool isValid();
- int ref_count;
Mutex mutex;
private:
void *magic;
- bool is_loaded;
+ volatile bool is_loaded;
};
#endif/*__DRUMGIZMO_AUDIOFILE_H__*/