/** * @file encoderwavesettings.h * @author Josep Maria AntolĂ­n * @date Feb 27 2017 * @brief storage of setting for vorbis encoder */ #ifndef ENCODERVORBISSETTINGS_H #define ENCODERVORBISSETTINGS_H #include "encoder/encoderrecordingsettings.h" #include "encoder/encoder.h" #include "recording/defs_recording.h" class EncoderVorbisSettings : public EncoderRecordingSettings { public: EncoderVorbisSettings(UserSettingsPointer pConfig); ~EncoderVorbisSettings() override = default; // Indicates that it uses the quality slider section of the preferences bool usesQualitySlider() const override { return true; } // Returns the list of quality values that it supports, to assign them to the slider QList getQualityValues() const override; // Sets the quality value by its index void setQualityByIndex(int qualityIndex) override; // Returns the current quality value int getQuality() const override; int getQualityIndex() const override; // Returns the format of this encoder settings. QString getFormat() const override { return ENCODING_OGG; } private: QList m_qualList; UserSettingsPointer m_pConfig; }; #endif // ENCODERVORBISSETTINGS_H