diff options
| author | mick <mickgrierson@gmail.com> | 2012-06-14 10:17:17 +0100 |
|---|---|---|
| committer | mick <mickgrierson@gmail.com> | 2012-06-14 10:17:17 +0100 |
| commit | afd1253433731e696c4bc1551961f9652de7af8e (patch) | |
| tree | 791918993e6b4ee9cd963b5deba121e9e80a3850 /maximilian.cpp | |
| parent | 62b43e8f32af364cbc8e46fffed2854c27533acc (diff) | |
HugoYu's github issue #4 "Example's Bug On Win32 Platform" fixed. Thanks HugoYu!
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 |
