This commit is contained in:
Jorj Bauer 2020-07-13 21:10:23 -04:00
parent a67cc53bcd
commit 528a7f8837
2 changed files with 2 additions and 6 deletions

View File

@ -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",

View File

@ -22,9 +22,6 @@ class SDLSpeaker : public PhysicalSpeaker {
private:
uint8_t mixerValue;
bool toggleState;
uint64_t lastCycleCount;
uint64_t lastSampleCount;
};
#endif