forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathencoderwavesettings.h
More file actions
39 lines (32 loc) · 1.25 KB
/
Copy pathencoderwavesettings.h
File metadata and controls
39 lines (32 loc) · 1.25 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
#pragma once
#include <QList>
#include "encoder/encoderrecordingsettings.h"
#include "preferences/usersettings.h"
/// Storage of settings for WAVE/AIFF encoder
class EncoderWaveSettings : public EncoderRecordingSettings {
public:
EncoderWaveSettings(UserSettingsPointer pConfig, QString format);
~EncoderWaveSettings() override = default;
/// Returns the list of radio options to show to the user
QList<OptionsGroup> getOptionGroups() const override;
/// Selects the option by its index. If it is a single-element option,
/// index 0 means disabled and 1 enabled.
void setGroupOption(const QString& groupCode, int optionIndex) override;
/// Return the selected option of the group. If it is a single-element option,
/// 0 means disabled and 1 enabled.
int getSelectedOption(const QString& groupCode) const override;
/// Returns the format subtype of this encoder settings.
QString getFormat() const override{
return m_format;
}
static const QString BITS_GROUP;
private:
QList<OptionsGroup> m_radioList;
UserSettingsPointer m_pConfig;
QString m_format;
protected:
// Provide config to base class
UserSettingsPointer getConfig() const override {
return m_pConfig;
}
};