Separate default quality setting for encoders.

Instead of having a global quality setting for the encoder make the encoder
provide its default value by itself. Fixes the libmp3lame encoder using an
unsuitable value since the range differs greatly between the encoders.

Centralize reading the configuration values for rbspeex. The values are stored
in member variables, so it's not necessary to read them multiple times.

Change-Id: Ia26cb1fc3bb4f927d13212fe7883bdfe2571a711
This commit is contained in:
Dominik Riebeling 2012-01-29 15:36:30 +01:00
parent 933a674891
commit 0ae49c2719
3 changed files with 28 additions and 24 deletions

View file

@ -45,6 +45,7 @@ class EncoderRbSpeex : public EncoderBase
void saveSettings();
private:
void loadSettings(void);
float quality;
float volume;
int complexity;