summaryrefslogtreecommitdiff
path: root/src/audiofile.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/audiofile.h')
-rw-r--r--src/audiofile.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/audiofile.h b/src/audiofile.h
index 46c9285..20ffdf3 100644
--- a/src/audiofile.h
+++ b/src/audiofile.h
@@ -67,12 +67,14 @@
#define LAZYLOAD
+#define ALL_SAMPLES -1
+
class AudioFile {
public:
AudioFile(std::string filename);
~AudioFile();
- void load();
+ void load(int num_samples = ALL_SAMPLES);
void unload();
bool isLoaded();