mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-11-13 23:22:34 -05:00
Split up encoders sources.
Create a separate source / header file for each supported encoder and the base class and rename classes for better readability. This should also make it easier adding new encoders. Remove a few trailing spaces while at it. git-svn-id: svn://svn.rockbox.org/rockbox/trunk@31592 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
f860b57143
commit
be0e197190
12 changed files with 337 additions and 239 deletions
|
|
@ -99,14 +99,14 @@ void CreateVoiceWindow::updateSettings(void)
|
|||
else
|
||||
ui.labelTtsProfile->setText(tr("Selected TTS engine: <b>%1</b>")
|
||||
.arg("Invalid TTS configuration!"));
|
||||
|
||||
|
||||
QString encoder = SystemInfo::value(SystemInfo::CurEncoder).toString();
|
||||
// only proceed if encoder setting is set
|
||||
EncBase* enc = EncBase::getEncoder(this,encoder);
|
||||
EncoderBase* enc = EncoderBase::getEncoder(this,encoder);
|
||||
if(enc != NULL) {
|
||||
if(enc->configOk())
|
||||
ui.labelEncProfile->setText(tr("Selected encoder: <b>%1</b>")
|
||||
.arg(EncBase::getEncoderName(encoder)));
|
||||
.arg(EncoderBase::getEncoderName(encoder)));
|
||||
else
|
||||
ui.labelEncProfile->setText(tr("Selected encoder: <b>%1</b>")
|
||||
.arg("Invalid encoder configuration!"));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue