From 9db5c124af8eb7b950b64f0942262f549e661d4a Mon Sep 17 00:00:00 2001 From: Dominik Riebeling Date: Sun, 15 Jan 2012 12:24:54 +0100 Subject: 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. --- rbutil/rbutilqt/base/voicefile.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'rbutil/rbutilqt/base/voicefile.cpp') 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) connect(&generator,SIGNAL(logProgress(int,int)),this,SIGNAL(logProgress(int,int))); connect(this,SIGNAL(aborted()),&generator,SLOT(abort())); - if(generator.process(&m_talkList) == TalkGenerator::eERROR) + if(generator.process(&m_talkList, m_wavtrimThreshold) == TalkGenerator::eERROR) { cleanup(); emit logProgress(0,1); -- cgit v1.2.3