mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
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.
This commit is contained in:
parent
7f26a10d31
commit
9db5c124af
2 changed files with 11 additions and 4 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue