summaryrefslogtreecommitdiffstats
path: root/src/modules/snd
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-01-27 12:24:23 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-02-03 18:46:43 +0900
commited184e8a40a61c38536ba6b2ab3453dffe7937e5 (patch)
treebbd710b568b806847dd7307adc4557ca59f9f22e /src/modules/snd
parent226080f88c5b3c47626cb46314e359de188c2249 (diff)
downloadkvirc-ed184e8a40a61c38536ba6b2ab3453dffe7937e5.tar.gz
kvirc-ed184e8a40a61c38536ba6b2ab3453dffe7937e5.zip
Fix conversion of TQString to const char*
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/snd')
-rw-r--r--src/modules/snd/libkvisnd.cpp14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/modules/snd/libkvisnd.cpp b/src/modules/snd/libkvisnd.cpp
index d508ed39..1c3b61f9 100644
--- a/src/modules/snd/libkvisnd.cpp
+++ b/src/modules/snd/libkvisnd.cpp
@@ -434,7 +434,7 @@ void KviSoundThread::run()
if(!f.open(IO_ReadOnly))
{
- tqDebug("Could not open sound file %s! [OSS]",m_szFileName.utf8().data());
+ tqDebug("Could not open sound file %s! [OSS]",m_szFileName.local8Bit().data());
return;
}
@@ -442,13 +442,13 @@ void KviSoundThread::run()
if(iSize < 24)
{
- tqDebug("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.local8Bit().data());
goto exit_thread;
}
if(f.readBlock(buf,24) < 24)
{
- tqDebug("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.local8Bit().data());
goto exit_thread;
}
@@ -472,7 +472,7 @@ void KviSoundThread::run()
int iReaded = f.readBlock(buf + iDataLen,iToRead);
if(iReaded < 1)
{
- tqDebug("Error while reading the file data (%s)! [OSS]",m_szFileName.utf8().data());
+ tqDebug("Error while reading the file data (%s)! [OSS]",m_szFileName.local8Bit().data());
goto exit_thread;
}
iSize -= iReaded;
@@ -485,7 +485,7 @@ void KviSoundThread::run()
{
if((errno != EINTR) && (errno != EAGAIN))
{
- tqDebug("Error while writing the audio data (%s)! [OSS]",m_szFileName.utf8().data());
+ tqDebug("Error while writing the audio data (%s)! [OSS]",m_szFileName.local8Bit().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))
- tqDebug("Could not play sound %s! [ESD]",m_szFileName.utf8().data());
+ tqDebug("Could not play sound %s! [ESD]",m_szFileName.local8Bit().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())
{
- tqDebug("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.local8Bit().data());
} else {
server->play(m_szFileName);
}