diff options
Diffstat (limited to 'src/audiofile.h')
-rw-r--r-- | src/audiofile.h | 9 |
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__*/ |