mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-12-09 13:15:18 -05:00
voicefont: make format version a parameter.
Make hardcoded format version a parameter to allow adjusting depending on the installed Rockbox version. Rockbox Utility will read the version from the installed version. Since the command line voicefont tool is only intended for use in the current tree it uses a fixed version. Change-Id: I1ec935d47c71961e93b3c6bc6c5d816cd9fc83ff
This commit is contained in:
parent
7c78963bbb
commit
b2380b535e
6 changed files with 15 additions and 5 deletions
|
|
@ -59,6 +59,7 @@ bool VoiceFileCreator::createVoiceFile()
|
|||
QString features = info.features();
|
||||
m_targetid = info.targetID().toInt();
|
||||
m_versionstring = info.version();
|
||||
m_voiceformat = info.voicefmt();
|
||||
QString version = m_versionstring.left(m_versionstring.indexOf("-")).remove("r");
|
||||
|
||||
//prepare download url
|
||||
|
|
@ -231,7 +232,8 @@ void VoiceFileCreator::create(void)
|
|||
return;
|
||||
}
|
||||
|
||||
voicefont(ids2,m_targetid,m_path.toLocal8Bit().data(), output);
|
||||
qDebug() << "[VoiceFile] Running voicefont, format" << m_voiceformat;
|
||||
voicefont(ids2,m_targetid,m_path.toLocal8Bit().data(), output, m_voiceformat);
|
||||
// ids2 and output are closed by voicefont().
|
||||
|
||||
//cleanup
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue