From afd1253433731e696c4bc1551961f9652de7af8e Mon Sep 17 00:00:00 2001 From: mick Date: Thu, 14 Jun 2012 10:17:17 +0100 Subject: HugoYu's github issue #4 "Example's Bug On Win32 Platform" fixed. Thanks HugoYu! --- maximilian.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'maximilian.cpp') 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: " <