From bebb41262bdc44cd8d4432ddaa7640fa89b242f4 Mon Sep 17 00:00:00 2001 From: Mick Grierson Date: Sat, 7 Apr 2012 11:43:02 +0100 Subject: "added ogg vorbis support also did some minor bug fixes for windows and fixed a bug in stereo sample loading where the files played back a t a funny speed" You *need* to make sure that stb_vorbis.h and stb_vorbis.c are included in your VS2010 or Xcode project if you want vorbis support! --- maximilian.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'maximilian.h') diff --git a/maximilian.h b/maximilian.h index 2629390..3345344 100755 --- a/maximilian.h +++ b/maximilian.h @@ -187,22 +187,30 @@ public: char* myData; + short* temp; // get/set for the Path property ~maxiSample() { if (myData) delete[] myData; + if (temp) delete[] temp; + } maxiSample():myData(NULL){}; bool load(string fileName, int channel=0); + + bool loadOgg(char *filename,int channel=0); void trigger(); // read a wav file into this class bool read(); + + //read an ogg file into this class using stb_vorbis + bool readOgg(); double play(); -- cgit v1.3