From 044dd2e4569fc844eb9af8b6d1c1f4edc6c3af75 Mon Sep 17 00:00:00 2001 From: Chris Kiefer Date: Wed, 18 Jan 2012 14:11:55 +0000 Subject: Fixed string header + g++ warnings --- maximilian.cpp | 7 +++---- maximilian.h | 11 +---------- 2 files changed, 4 insertions(+), 14 deletions(-) diff --git a/maximilian.cpp b/maximilian.cpp index 538e3fb..0fe14d4 100644 --- a/maximilian.cpp +++ b/maximilian.cpp @@ -445,10 +445,9 @@ double maxiSample::play() { double maxiSample::playOnce() { // long length=myDataSize*(0.5/myChannels); - double remainder; short* buffer = (short *)myData; position=(position+1); - remainder = position - (long) position; + double remainder = position - (long) position; if ((long) position #include -#include +#include #include #include "math.h" @@ -193,15 +193,6 @@ public: ~maxiSample() { if (myData) delete[] myData; - myChunkSize = NULL; - mySubChunk1Size = NULL; - myFormat = NULL; - myChannels = NULL; - mySampleRate = NULL; - myByteRate = NULL; - myBlockAlign = NULL; - myBitsPerSample = NULL; - myDataSize = NULL; } maxiSample():myData(NULL){}; -- cgit v1.3