diff options
Diffstat (limited to 'src/modules/dcc/voice.cpp')
-rw-r--r-- | src/modules/dcc/voice.cpp | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/modules/dcc/voice.cpp b/src/modules/dcc/voice.cpp index deec4452..54fd433a 100644 --- a/src/modules/dcc/voice.cpp +++ b/src/modules/dcc/voice.cpp @@ -376,7 +376,7 @@ bool KviDccVoiceThread::soundStep() if(ioctl(m_soundFd,SNDCTL_DSP_GETOSPACE,&info) < 0) { - debug("get o space failed"); + tqDebug("get o space failed"); info.bytes = KVI_FRAGMENT_SIZE_IN_BYTES; // dummy... if this is not correct...well...we will block for 1024/16000 of a sec info.fragments = 1; info.fragsize = KVI_FRAGMENT_SIZE_IN_BYTES; @@ -384,7 +384,7 @@ bool KviDccVoiceThread::soundStep() if(info.fragments > 0) { int toWrite = info.fragments * info.fragsize; - //debug("Can write %d bytes",toWrite); + //tqDebug("Can write %d bytes",toWrite); if(m_inSignalBuffer.size() < toWrite)toWrite = m_inSignalBuffer.size(); int written = write(m_soundFd,m_inSignalBuffer.data(),toWrite); if(written > 0)m_inSignalBuffer.remove(written); @@ -467,12 +467,12 @@ bool KviDccVoiceThread::soundStep() audio_buf_info info; if(ioctl(m_soundFd,SNDCTL_DSP_GETISPACE,&info) < 0) { - debug("Ispace failed"); + tqDebug("Ispace failed"); info.fragments = 0; // dummy... info.bytes = 0; } - //debug("INFO: fragments: %d, fragstotal: %d, fragsize: %d, bytes: %d",info.fragments,info.fragstotal,info.fragsize,info.bytes); + //tqDebug("INFO: fragments: %d, fragstotal: %d, fragsize: %d, bytes: %d",info.fragments,info.fragstotal,info.fragsize,info.bytes); if(info.fragments == 0 && info.bytes == 0) { @@ -502,14 +502,14 @@ bool KviDccVoiceThread::soundStep() } } /* - debug("Signal buffer:"); + tqDebug("Signal buffer:"); for(int i=0;i<200;i+=2) { if(i >= m_outSignalBuffer.size())break; printf("%04x ",*(((unsigned short *)(m_outSignalBuffer.data() + i)))); if((i % 6) == 0)printf("\n"); } - debug("END\n"); + tqDebug("END\n"); */ m_pOpt->pCodec->encode(&m_outSignalBuffer,&m_outFrameBuffer); } @@ -526,11 +526,11 @@ bool KviDccVoiceThread::soundStep() void KviDccVoiceThread::startRecording() { #ifndef COMPILE_DISABLE_DCC_VOICE - //debug("Start recording"); + //tqDebug("Start recording"); if(m_bRecording)return; // already started if(openSoundcardForReading()) { -// debug("Posting event"); +// tqDebug("Posting event"); KviThreadDataEvent<int> * e = new KviThreadDataEvent<int>(KVI_DCC_THREAD_EVENT_ACTION); e->setData(new int(KVI_DCC_VOICE_THREAD_ACTION_START_RECORDING)); postEvent(parent(),e); @@ -546,7 +546,7 @@ void KviDccVoiceThread::startRecording() void KviDccVoiceThread::stopRecording() { #ifndef COMPILE_DISABLE_DCC_VOICE - //debug("Stop recording"); + //tqDebug("Stop recording"); m_bRecordingRequestPending = false; if(!m_bRecording)return; // already stopped @@ -562,7 +562,7 @@ void KviDccVoiceThread::stopRecording() void KviDccVoiceThread::startPlaying() { #ifndef COMPILE_DISABLE_DCC_VOICE - //debug("Start playing"); + //tqDebug("Start playing"); if(m_bPlaying)return; if(openSoundcardForWriting()) @@ -578,7 +578,7 @@ void KviDccVoiceThread::startPlaying() void KviDccVoiceThread::stopPlaying() { #ifndef COMPILE_DISABLE_DCC_VOICE - //debug("Stop playing"); + //tqDebug("Stop playing"); if(!m_bPlaying)return; KviThreadDataEvent<int> * e = new KviThreadDataEvent<int>(KVI_DCC_THREAD_EVENT_ACTION); @@ -860,7 +860,7 @@ bool KviDccVoice::event(TQEvent *e) } break; default: - debug("Invalid event type %d received",((KviThreadEvent *)e)->id()); + tqDebug("Invalid event type %d received",((KviThreadEvent *)e)->id()); break; } @@ -1026,7 +1026,7 @@ void KviDccVoice::setMixerVolume(int vol) * another KVirc window, fired up xmms, changed the volume, and returned to our dcc voice window */ void KviDccVoice::focusInEvent(TQFocusEvent *e) { -// debug("focusInEvent()"); +// tqDebug("focusInEvent()"); m_pVolumeSlider->setValue(getMixerVolume()); setMixerVolume(m_pVolumeSlider->value()); |