aboutsummaryrefslogtreecommitdiffstats
path: root/maximilian.h
diff options
context:
space:
mode:
authorMick Grierson <mickgrierson@gmail.com>2012-04-07 11:43:02 +0100
committerMick Grierson <mickgrierson@gmail.com>2012-04-07 11:43:02 +0100
commitbebb41262bdc44cd8d4432ddaa7640fa89b242f4 (patch)
tree90af0d05d2e5c0994c2913cf234ce223a6183072 /maximilian.h
parent73184e1dc3e2378a99f7cbbb3ee3e25ff0356016 (diff)
"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!
Diffstat (limited to 'maximilian.h')
-rwxr-xr-xmaximilian.h8
1 files changed, 8 insertions, 0 deletions
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();