Skip to content

Commit

Permalink
remove debug printing to stdout; remove old tick function
Browse files Browse the repository at this point in the history
  • Loading branch information
cmosher01 committed Apr 24, 2012
1 parent 66d3d22 commit 60f968c
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions src/speakerclicker.cpp
Expand Up @@ -98,14 +98,15 @@ SpeakerClicker::SpeakerClicker():
{ {
bufchg = SDL_CreateCond(); bufchg = SDL_CreateCond();
buflck = SDL_CreateMutex(); buflck = SDL_CreateMutex();

/*
std::cout << "initialized audio: " << std::endl; std::cout << "initialized audio: " << std::endl;
std::cout << "freq: " << obtained.freq << std::endl; std::cout << "freq: " << obtained.freq << std::endl;
std::cout << "format: " << (obtained.format==AUDIO_S8?"8-bit":"other") << std::endl; std::cout << "format: " << (obtained.format==AUDIO_S8?"8-bit":"other") << std::endl;
std::cout << "channels: " << (int)obtained.channels << std::endl; std::cout << "channels: " << (int)obtained.channels << std::endl;
std::cout << "silence: " << (int)obtained.silence << std::endl; std::cout << "silence: " << (int)obtained.silence << std::endl;
std::cout << "samples: " << obtained.samples << std::endl; std::cout << "samples: " << obtained.samples << std::endl;
std::cout << "size: " << obtained.size << std::endl; std::cout << "size: " << obtained.size << std::endl;
*/
SDL_PauseAudio(0); SDL_PauseAudio(0);
} }
} }
Expand All @@ -126,24 +127,6 @@ SpeakerClicker::~SpeakerClicker()
SDL_DestroyMutex(buflck); 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() void SpeakerClicker::tick()
{ {
if (done) if (done)
Expand Down

0 comments on commit 60f968c

Please sign in to comment.