diff options
Diffstat (limited to 'maximilian.cpp')
| -rw-r--r-- | maximilian.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/maximilian.cpp b/maximilian.cpp index 62cf1a7..4407de2 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -39,7 +39,7 @@ * loadOgg() method. * Uncomment the following to include Sean Barrett's Ogg Vorbis decoder.*/ -//#define VORBIS +#define VORBIS #ifdef VORBIS #include "stb_vorbis.h" @@ -466,8 +466,8 @@ bool maxiSample::read() } } temp = (short*) malloc(myDataSize * sizeof(char)); - - temp=(short*)myData; +// temp=(short*)myData; + memcpy(temp, myData, myDataSize * sizeof(char)); }else { // cout << "ERROR: Could not load sample: " <<myPath << endl; //This line seems to be hated by windows |
