From 88a906395ba7d33ae563e70d8b94c855e3b5a573 Mon Sep 17 00:00:00 2001 From: Bent Bisballe Nyeng Date: Sun, 6 Oct 2013 13:10:00 +0200 Subject: Refactoring of AudioFile loading and message passing from engine to gui and vice versa. --- src/audiofile.h | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) (limited to 'src/audiofile.h') 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__*/ -- cgit v1.2.3