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