mirror of
https://github.com/JorjBauer/aiie.git
synced 2024-11-25 19:31:36 +00:00
cleanup
This commit is contained in:
parent
a67cc53bcd
commit
528a7f8837
@ -121,9 +121,6 @@ SDLSpeaker::SDLSpeaker()
|
|||||||
mixerValue = 0x80;
|
mixerValue = 0x80;
|
||||||
|
|
||||||
pthread_mutex_init(&togmutex, NULL);
|
pthread_mutex_init(&togmutex, NULL);
|
||||||
|
|
||||||
lastCycleCount = 0;
|
|
||||||
lastSampleCount = 0;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
SDLSpeaker::~SDLSpeaker()
|
SDLSpeaker::~SDLSpeaker()
|
||||||
@ -144,6 +141,8 @@ void SDLSpeaker::begin()
|
|||||||
|
|
||||||
memset((void *)&soundBuf[0], 0, CACHEMULTIPLIER*SDLSIZE);
|
memset((void *)&soundBuf[0], 0, CACHEMULTIPLIER*SDLSIZE);
|
||||||
bufIdx = 0;
|
bufIdx = 0;
|
||||||
|
skippedSamples = 0;
|
||||||
|
audioRunning = 0;
|
||||||
|
|
||||||
SDL_OpenAudio(&audioDevice, &audioActual); // FIXME retval
|
SDL_OpenAudio(&audioDevice, &audioActual); // FIXME retval
|
||||||
printf("Actual: freq %d channels %d samples %d\n",
|
printf("Actual: freq %d channels %d samples %d\n",
|
||||||
|
@ -22,9 +22,6 @@ class SDLSpeaker : public PhysicalSpeaker {
|
|||||||
private:
|
private:
|
||||||
uint8_t mixerValue;
|
uint8_t mixerValue;
|
||||||
bool toggleState;
|
bool toggleState;
|
||||||
|
|
||||||
uint64_t lastCycleCount;
|
|
||||||
uint64_t lastSampleCount;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user