summaryrefslogtreecommitdiff
path: root/src/audiofile.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/audiofile.cc')
-rw-r--r--src/audiofile.cc6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/audiofile.cc b/src/audiofile.cc
index d52e010..c3dba3c 100644
--- a/src/audiofile.cc
+++ b/src/audiofile.cc
@@ -31,12 +31,12 @@
#include <sndfile.h>
-AudioFile::AudioFile(std::string filename)
+AudioFile::AudioFile(std::string filename, bool preload)
{
this->filename = filename;
data = NULL;
size = 0;
- // load();
+ if(preload) load();
}
AudioFile::~AudioFile()
@@ -57,8 +57,6 @@ void AudioFile::load()
{
if(data) return;
- filename = "/tmp/aasimonster/" + filename;
-
SF_INFO sf_info;
SNDFILE *fh = sf_open(filename.c_str(), SFM_READ, &sf_info);