forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencodervorbissettings.h
More file actions
40 lines (33 loc) · 1.23 KB
/
Copy pathencodervorbissettings.h
File metadata and controls
40 lines (33 loc) · 1.23 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
#pragma once
#include "encoder/encoderrecordingsettings.h"
#include "preferences/usersettings.h"
#include "recording/defs_recording.h"
/// Storage of settings for Vorbis encoder
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<int> 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<int> m_qualList;
UserSettingsPointer m_pConfig;
protected:
// Provide config to base class to read channel mode from recording preferences
UserSettingsPointer getConfig() const override {
return m_pConfig;
}
};