summaryrefslogtreecommitdiffstats
path: root/src/modules/dcc/voice.cpp
diff options
context:
space:
mode:
authorMichele Calgaro <michele.calgaro@yahoo.it>2026-02-21 11:03:45 +0900
committerMichele Calgaro <michele.calgaro@yahoo.it>2026-02-22 20:26:55 +0900
commit16d42ec4616a84b046cd71f805a009b792a93ec9 (patch)
tree1522d1dd06ecd32e6c61d142b88d4b4814b83950 /src/modules/dcc/voice.cpp
parenta09cecfffd5151adfc50e343c821ed8ebdd1ab87 (diff)
downloadkvirc-16d42ec4616a84b046cd71f805a009b792a93ec9.tar.gz
kvirc-16d42ec4616a84b046cd71f805a009b792a93ec9.zip
Fix conversion of TQString to const char* (modules)
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'src/modules/dcc/voice.cpp')
-rw-r--r--src/modules/dcc/voice.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/modules/dcc/voice.cpp b/src/modules/dcc/voice.cpp
index ed0a9026..6a98313f 100644
--- a/src/modules/dcc/voice.cpp
+++ b/src/modules/dcc/voice.cpp
@@ -161,7 +161,7 @@ bool KviDccVoiceThread::checkSoundcard()
if(ioctl(m_soundFd,SNDCTL_DSP_GETCAPS,&caps) < 0)
{
- postMessageEvent(__tr2qs_ctx("WARNING: failed to check the soundcard duplex capabilities: if this is a half-duplex soundcard , use the DCC VOICE option to force half-duplex algorithm","dcc"));
+ postMessageEvent(__tr2qs_ctx("WARNING: failed to check the soundcard duplex capabilities: if this is a half-duplex soundcard , use the DCC VOICE option to force half-duplex algorithm","dcc").utf8().data());
if(bOpened)closeSoundcard();
return false;
}
@@ -169,7 +169,7 @@ bool KviDccVoiceThread::checkSoundcard()
if(!(caps & DSP_CAP_DUPLEX))
{
m_pOpt->bForceHalfDuplex = true; // the device is half duplex...use it in that way
- postMessageEvent(__tr2qs_ctx("Half duplex soundcard detected, you will not be able to talk and listen at the same time","dcc"));
+ postMessageEvent(__tr2qs_ctx("Half duplex soundcard detected, you will not be able to talk and listen at the same time","dcc").utf8().data());
}
if(bOpened)closeSoundcard();
@@ -210,7 +210,7 @@ bool KviDccVoiceThread::openSoundcard(int mode)
if(ioctl(m_soundFd,SNDCTL_DSP_SPEED,&speed)<0)goto exit_false;
if(speed != m_pOpt->iSampleRate)
{
- KviStr tmp(KviStr::Format,__tr2qs_ctx("WARNING: failed to set the requested sample rate (%d): the device used closest match (%d)","dcc"),
+ KviStr tmp(KviStr::Format,__tr2qs_ctx("WARNING: failed to set the requested sample rate (%d): the device used closest match (%d)","dcc").utf8().data(),
m_pOpt->iSampleRate,speed);
postMessageEvent(tmp.ptr());
}
@@ -268,7 +268,7 @@ bool KviDccVoiceThread::openSoundcardWithDuplexOption(int openMode,int failMode)
if(!openSoundcard(openMode))return false;
if(!checkSoundcard())
{
- postMessageEvent(__tr2qs_ctx("Ops...failed to test the soundcard capabilities...expect problems...","dcc"));
+ postMessageEvent(__tr2qs_ctx("Ops...failed to test the soundcard capabilities...expect problems...","dcc").utf8().data());
}
} // else the test has been done and it is a full duplex card that is just busy
}