summaryrefslogtreecommitdiff
path: root/src/audiofile.h
diff options
context:
space:
mode:
authorBent Bisballe Nyeng <deva@aasimon.org>2015-04-23 15:13:07 +0200
committerBent Bisballe Nyeng <deva@aasimon.org>2015-04-23 15:13:07 +0200
commit83316b2cc7cba508c9f9a7dfcc4c82026507badf (patch)
tree40c4229f01874aca7fa6c9323b1080b9d5e7a537 /src/audiofile.h
parentd4b217d3c2902bab3daf438714bcb7cb3ccbca51 (diff)
Added 'preloadedsize' to AudioFile to reflect how much data was loaded and not just how big the entire file is.
Diffstat (limited to 'src/audiofile.h')
-rw-r--r--src/audiofile.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/audiofile.h b/src/audiofile.h
index 5b57db8..5f93584 100644
--- a/src/audiofile.h
+++ b/src/audiofile.h
@@ -79,7 +79,8 @@ public:
bool isLoaded();
- volatile size_t size;
+ volatile size_t size; // Full size of the file
+ volatile size_t preloadedsize; // Number of samples preloaded (in data)
sample_t *data;
std::string filename;