summaryrefslogtreecommitdiffstats
path: root/rbutil
diff options
context:
space:
mode:
authorDominik Wenger <domonoky@googlemail.com>2009-06-27 15:04:53 +0000
committerDominik Wenger <domonoky@googlemail.com>2009-06-27 15:04:53 +0000
commitb6143b053fa8db7511d44acbf5c59eb9de33ed94 (patch)
tree17af7dd0edf4f941b409584749a9204c430864af /rbutil
parent959d07df5c7790502ee51cbca905849e1f022546 (diff)
downloadrockbox-b6143b053fa8db7511d44acbf5c59eb9de33ed94.tar.gz
rockbox-b6143b053fa8db7511d44acbf5c59eb9de33ed94.tar.bz2
rockbox-b6143b053fa8db7511d44acbf5c59eb9de33ed94.zip
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
Diffstat (limited to 'rbutil')
-rw-r--r--rbutil/rbutilqt/configure.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/configure.cpp b/rbutil/rbutilqt/configure.cpp
index fae537b367..b4c71cf32a 100644
--- a/rbutil/rbutilqt/configure.cpp
+++ b/rbutil/rbutilqt/configure.cpp
@@ -29,7 +29,7 @@
#include "detect.h"
#include "encttscfggui.h"
#include "rbsettings.h"
-
+#include "utils.h"
#include <stdio.h>
#if defined(Q_OS_WIN32)
#if defined(UNICODE)
@@ -691,7 +691,16 @@ void Config::testTts()
return;
}
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);
+#endif
}
void Config::configEnc()