Browse files

remove debug printing to stdout; remove old tick function

  • Loading branch information...
1 parent 66d3d22 commit 60f968c5f070643bf34f8281cf504917b0769fd0 @cmosher01 committed Apr 23, 2012
Showing with 2 additions and 19 deletions.
  1. +2 −19 src/speakerclicker.cpp
View
21 src/speakerclicker.cpp
@@ -98,14 +98,15 @@ 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;
std::cout << "channels: " << (int)obtained.channels << std::endl;
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)

0 comments on commit 60f968c

Please sign in to comment.