mirror of
https://github.com/cmosher01/Epple-II.git
synced 2024-11-15 16:06:39 +00:00
remove debug printing to stdout; remove old tick function
This commit is contained in:
parent
66d3d22a37
commit
60f968c5f0
@ -98,7 +98,7 @@ SpeakerClicker::SpeakerClicker():
|
||||
{
|
||||
bufchg = SDL_CreateCond();
|
||||
buflck = SDL_CreateMutex();
|
||||
|
||||
/*
|
||||
std::cout << "initialized audio: " << std::endl;
|
||||
std::cout << "freq: " << obtained.freq << std::endl;
|
||||
std::cout << "format: " << (obtained.format==AUDIO_S8?"8-bit":"other") << std::endl;
|
||||
@ -106,6 +106,7 @@ SpeakerClicker::SpeakerClicker():
|
||||
std::cout << "silence: " << (int)obtained.silence << std::endl;
|
||||
std::cout << "samples: " << obtained.samples << std::endl;
|
||||
std::cout << "size: " << obtained.size << std::endl;
|
||||
*/
|
||||
SDL_PauseAudio(0);
|
||||
}
|
||||
}
|
||||
@ -126,24 +127,6 @@ SpeakerClicker::~SpeakerClicker()
|
||||
SDL_DestroyMutex(buflck);
|
||||
}
|
||||
|
||||
/*
|
||||
void SpeakerClicker::tick()
|
||||
{
|
||||
--this->t;
|
||||
if (this->t <= 0)
|
||||
{
|
||||
this->t = TICKS_PER_SAMPLE;
|
||||
if (this->clicked)
|
||||
{
|
||||
this->positive = !this->positive;
|
||||
this->clicked = false;
|
||||
}
|
||||
locbuf.push_back(this->positive ? AMP : -AMP);
|
||||
locbuf.push_back(this->positive ? AMP : -AMP);
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
void SpeakerClicker::tick()
|
||||
{
|
||||
if (done)
|
||||
|
Loading…
Reference in New Issue
Block a user