remove debug printing to stdout; remove old tick function

This commit is contained in:
Christopher Mosher 2012-04-23 21:50:21 -04:00
parent 66d3d22a37
commit 60f968c5f0
1 changed files with 2 additions and 19 deletions

View File

@ -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)