1
0
Fork 0
forked from len0rd/rockbox

rbutil: make the test TTS Function use aplay or play on Linux.

git-svn-id: svn://svn.rockbox.org/rockbox/trunk@21530 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
Dominik Wenger 2009-06-27 15:04:53 +00:00
parent 959d07df5c
commit b6143b053f

View file

@ -29,7 +29,7 @@
#include "detect.h" #include "detect.h"
#include "encttscfggui.h" #include "encttscfggui.h"
#include "rbsettings.h" #include "rbsettings.h"
#include "utils.h"
#include <stdio.h> #include <stdio.h>
#if defined(Q_OS_WIN32) #if defined(Q_OS_WIN32)
#if defined(UNICODE) #if defined(UNICODE)
@ -691,7 +691,16 @@ void Config::testTts()
return; return;
} }
tts->stop(); tts->stop();
#if defined(Q_OS_LINUX)
QString exe = findExecutable("aplay");
if(exe == "") exe = findExecutable("play");
if(exe != "")
{
QProcess::execute(exe+" "+filename);
}
#else
QSound::play(filename); QSound::play(filename);
#endif
} }
void Config::configEnc() void Config::configEnc()