diff options
author | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-01-15 12:24:54 +0100 |
---|---|---|
committer | Dominik Riebeling <Dominik.Riebeling@gmail.com> | 2012-01-15 12:30:03 +0100 |
commit | 9db5c124af8eb7b950b64f0942262f549e661d4a (patch) | |
tree | b0be84b5839594d1d4e9ca20b29e1e99a2793c9b /rbutil/rbutilqt/base/voicefile.cpp | |
parent | 7f26a10d31911c3468312563cd2667a96278944b (diff) | |
download | rockbox-9db5c124af8eb7b950b64f0942262f549e661d4a.tar.gz rockbox-9db5c124af8eb7b950b64f0942262f549e661d4a.zip |
Fix wavtrim on voicefile creation.
Pass the threshold value for wavtrim to the TalkGenerator object instead of
using the default value. Makes wavtrim to be actually used.
Furthermore, check the result of the wavtrim call and respect its return value.
Diffstat (limited to 'rbutil/rbutilqt/base/voicefile.cpp')
-rw-r--r-- | rbutil/rbutilqt/base/voicefile.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rbutil/rbutilqt/base/voicefile.cpp b/rbutil/rbutilqt/base/voicefile.cpp index ebabf9e8f6..2cc9f18c25 100644 --- a/rbutil/rbutilqt/base/voicefile.cpp +++ b/rbutil/rbutilqt/base/voicefile.cpp | |||
@@ -187,7 +187,7 @@ void VoiceFileCreator::downloadDone(bool error) | |||
187 | connect(&generator,SIGNAL(logProgress(int,int)),this,SIGNAL(logProgress(int,int))); | 187 | connect(&generator,SIGNAL(logProgress(int,int)),this,SIGNAL(logProgress(int,int))); |
188 | connect(this,SIGNAL(aborted()),&generator,SLOT(abort())); | 188 | connect(this,SIGNAL(aborted()),&generator,SLOT(abort())); |
189 | 189 | ||
190 | if(generator.process(&m_talkList) == TalkGenerator::eERROR) | 190 | if(generator.process(&m_talkList, m_wavtrimThreshold) == TalkGenerator::eERROR) |
191 | { | 191 | { |
192 | cleanup(); | 192 | cleanup(); |
193 | emit logProgress(0,1); | 193 | emit logProgress(0,1); |