Warning and static removal

Clean up compiler warnings and make static variables in class functions
into class variables where they belong.
This commit is contained in:
Earle F. Philhower, III committed 2017-08-15 20:58:16 -07:00
1 parent 64ceb33a31
commit 0a453a077a
9 files changed
+43 -63

No files matched your search

+2 -1
View File
@@ -28,7 +28,7 @@
class AudioGenerator
{
public:
AudioGenerator() {};
AudioGenerator() { lastSample[0] = 0; lastSample[1] = 0; };
virtual ~AudioGenerator() {};
virtual bool begin(AudioFileSource *source, AudioOutput *output) { (void)source; (void)output; return false; };
virtual bool loop() { return false; };
@@ -39,6 +39,7 @@ class AudioGenerator
bool running;
AudioFileSource *file;
AudioOutput *output;
int16_t lastSample[2];
};