19#ifndef FLUIDSETTINGSDIALOG_H
20#define FLUIDSETTINGSDIALOG_H
40 class FluidSettingsDialog;
43class FluidSettingsDialog :
public QDialog
48 explicit FluidSettingsDialog(QWidget *parent =
nullptr);
49 ~FluidSettingsDialog();
53 void chkDriverProperties(
QSettings* settings);
56 void accept()
override;
57 void showEvent(QShowEvent *event)
override;
58 void restoreDefaults();
59 void showFileDialog();
60 void audioDriverChanged(
const QString &text);
61 void bufferTimeChanged(
int value);
62 void bufferSizeChanged();
65 static const QString QSTR_PREFERENCES;
66 static const QString QSTR_INSTRUMENTSDEFINITION;
67 static const QString QSTR_DATADIR;
68 static const QString QSTR_DATADIR2;
69 static const QString QSTR_AUDIODRIVER;
70 static const QString QSTR_PERIODSIZE;
71 static const QString QSTR_PERIODS;
72 static const QString QSTR_SAMPLERATE;
73 static const QString QSTR_CHORUS;
74 static const QString QSTR_REVERB;
75 static const QString QSTR_GAIN;
76 static const QString QSTR_POLYPHONY;
77 static const QString QSTR_BUFFERTIME;
79 static const int DEFAULT_BUFFERTIME = 50;
80 static const int DEFAULT_PERIODSIZE = 512;
81 static const int DEFAULT_PERIODS = 8;
82 static constexpr double DEFAULT_SAMPLERATE = 44100.0;
83 static const int DEFAULT_CHORUS = 0;
84 static const int DEFAULT_REVERB = 1;
85 static constexpr double DEFAULT_GAIN = 1.0;
86 static const int DEFAULT_POLYPHONY = 256;
87 static const QString QSTR_PULSEAUDIO;
90 QString defaultAudioDriver()
const;
91 bool checkRanges()
const;
93 QString driverVersion()
const;
94 bool driverVersionLessThan_2_2_8();
96 Ui::FluidSettingsDialog *ui;
98 QString m_defSoundFont;
The QSettings class provides persistent platform-independent application settings.