From 528a7f883702a4f3b4b792f303d87881febf98e8 Mon Sep 17 00:00:00 2001 From: Jorj Bauer Date: Mon, 13 Jul 2020 21:10:23 -0400 Subject: [PATCH] cleanup --- sdl/sdl-speaker.cpp | 5 ++--- sdl/sdl-speaker.h | 3 --- 2 files changed, 2 insertions(+), 6 deletions(-) diff --git a/sdl/sdl-speaker.cpp b/sdl/sdl-speaker.cpp index 69e1b87..625b3fd 100644 --- a/sdl/sdl-speaker.cpp +++ b/sdl/sdl-speaker.cpp @@ -121,9 +121,6 @@ SDLSpeaker::SDLSpeaker() mixerValue = 0x80; pthread_mutex_init(&togmutex, NULL); - - lastCycleCount = 0; - lastSampleCount = 0; } SDLSpeaker::~SDLSpeaker() @@ -144,6 +141,8 @@ void SDLSpeaker::begin() memset((void *)&soundBuf[0], 0, CACHEMULTIPLIER*SDLSIZE); bufIdx = 0; + skippedSamples = 0; + audioRunning = 0; SDL_OpenAudio(&audioDevice, &audioActual); // FIXME retval printf("Actual: freq %d channels %d samples %d\n", diff --git a/sdl/sdl-speaker.h b/sdl/sdl-speaker.h index 0318485..309f5c3 100644 --- a/sdl/sdl-speaker.h +++ b/sdl/sdl-speaker.h @@ -22,9 +22,6 @@ class SDLSpeaker : public PhysicalSpeaker { private: uint8_t mixerValue; bool toggleState; - - uint64_t lastCycleCount; - uint64_t lastSampleCount; }; #endif