diff options
Diffstat (limited to 'src/modules/snd/libkvisnd.cpp')
-rw-r--r-- | src/modules/snd/libkvisnd.cpp | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/src/modules/snd/libkvisnd.cpp b/src/modules/snd/libkvisnd.cpp index fcd00a58..2449b5b0 100644 --- a/src/modules/snd/libkvisnd.cpp +++ b/src/modules/snd/libkvisnd.cpp @@ -369,8 +369,8 @@ void KviSoundThread::run() if(audiofd_c < 0) { - debug("Could not open audio devive /dev/dsp! [OSS]"); - debug("(the device is probably busy)"); + tqDebug("Could not open audio devive /dev/dsp! [OSS]"); + tqDebug("(the device is probably busy)"); goto exit_thread; } @@ -379,20 +379,20 @@ void KviSoundThread::run() if (ioctl(audiofd.handle(),SNDCTL_DSP_SETFMT, &format) == -1) { - debug("Could not set format width to DSP! [OSS]"); + tqDebug("Could not set format width to DSP! [OSS]"); goto exit_thread; } if (ioctl(audiofd.handle(), SNDCTL_DSP_CHANNELS, &channelCount) == -1) { - debug("Could not set DSP channels! [OSS]"); + tqDebug("Could not set DSP channels! [OSS]"); goto exit_thread; } freq = (int) afGetRate(file, AF_DEFAULT_TRACK); if (ioctl(audiofd.handle(), SNDCTL_DSP_SPEED, &freq) == -1) { - debug("Could not set DSP speed %d! [OSS]",freq); + tqDebug("Could not set DSP speed %d! [OSS]",freq); goto exit_thread; } @@ -434,7 +434,7 @@ void KviSoundThread::run() if(!f.open(IO_ReadOnly)) { - debug("Could not open sound file %s! [OSS]",m_szFileName.utf8().data()); + tqDebug("Could not open sound file %s! [OSS]",m_szFileName.utf8().data()); return; } @@ -442,13 +442,13 @@ void KviSoundThread::run() if(iSize < 24) { - debug("Could not play sound, file %s too small! [OSS]",m_szFileName.utf8().data()); + tqDebug("Could not play sound, file %s too small! [OSS]",m_szFileName.utf8().data()); goto exit_thread; } if(f.readBlock(buf,24) < 24) { - debug("Error while reading the sound file header (%s)! [OSS]",m_szFileName.utf8().data()); + tqDebug("Error while reading the sound file header (%s)! [OSS]",m_szFileName.utf8().data()); goto exit_thread; } @@ -457,8 +457,8 @@ void KviSoundThread::run() fd = open("/dev/audio", O_WRONLY | O_EXCL | O_NDELAY); if(fd < 0) { - debug("Could not open device file /dev/audio!"); - debug("Maybe other program is using the device? Hint: fuser -uv /dev/audio"); + tqDebug("Could not open device file /dev/audio!"); + tqDebug("Maybe other program is using the device? Hint: fuser -uv /dev/audio"); goto exit_thread; } @@ -472,7 +472,7 @@ void KviSoundThread::run() int iReaded = f.readBlock(buf + iDataLen,iToRead); if(iReaded < 1) { - debug("Error while reading the file data (%s)! [OSS]",m_szFileName.utf8().data()); + tqDebug("Error while reading the file data (%s)! [OSS]",m_szFileName.utf8().data()); goto exit_thread; } iSize -= iReaded; @@ -485,7 +485,7 @@ void KviSoundThread::run() { if((errno != EINTR) && (errno != EAGAIN)) { - debug("Error while writing the audio data (%s)! [OSS]",m_szFileName.utf8().data()); + tqDebug("Error while writing the audio data (%s)! [OSS]",m_szFileName.utf8().data()); goto exit_thread; } } @@ -519,7 +519,7 @@ void KviSoundThread::run() { // ESD has a really nice API if(!esd_play_file(NULL,m_szFileName.utf8().data(),1)) - debug("Could not play sound %s! [ESD]",m_szFileName.utf8().data()); + tqDebug("Could not play sound %s! [ESD]",m_szFileName.utf8().data()); } #endif //COMPILE_ESD_SUPPORT @@ -542,7 +542,7 @@ void KviSoundThread::run() Arts::SimpleSoundServer *server = new Arts::SimpleSoundServer(Arts::Reference("global:Arts_SimpleSoundServer")); if(server->isNull()) { - debug("Can't connect to sound server to play file %s",m_szFileName.utf8().data()); + tqDebug("Can't connect to sound server to play file %s",m_szFileName.utf8().data()); } else { server->play(m_szFileName); } |