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:
parent
959d07df5c
commit
b6143b053f
1 changed files with 10 additions and 1 deletions
|
@ -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()
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue