#include <qmmpsettings.h>
List of all members.
Public Types |
enum | ReplayGainMode { REPLAYGAIN_TRACK = 0,
REPLAYGAIN_ALBUM,
REPLAYGAIN_DISABLED
} |
Signals |
void | replayGainSettingsChanged () |
void | audioSettingsChanged () |
void | coverSettingsChanged () |
void | networkSettingsChanged () |
void | eqSettingsChanged () |
Public Member Functions |
| QmmpSettings (QObject *parent=0) |
virtual | ~QmmpSettings () |
QmmpSettings::ReplayGainMode | replayGainMode () const |
double | replayGainPreamp () const |
double | replayGainDefaultGain () const |
bool | replayGainPreventClipping () const |
void | setReplayGainSettings (ReplayGainMode mode, double preamp, double default_gain, bool clip) |
bool | useSoftVolume () const |
Qmmp::AudioFormat | outputFormat () const |
bool | useDithering () const |
void | setAudioSettings (bool soft_volume, Qmmp::AudioFormat format, bool use_dithering) |
QStringList | coverNameFilters (bool include=true) const |
int | coverSearchDepth () const |
bool | useCoverFiles () const |
void | setCoverSettings (QStringList inc, QStringList exc, int depth, bool use_files) |
bool | isProxyEnabled () const |
bool | useProxyAuth () const |
QUrl | proxy () const |
void | setNetworkSettings (bool use_proxy, bool auth, const QUrl &proxy) |
EqSettings | eqSettings () const |
void | setEqSettings (const EqSettings &settings) |
void | readEqSettings (int bands=EqSettings::EQ_BANDS_10) |
int | bufferSize () const |
void | setBufferSize (int msec) |
void | setVolumeStep (int step) |
int | volumeStep () const |
void | setDetermineFileTypeByContent (bool enabled) |
bool | determineFileTypeByContent () const |
Static Public Member Functions |
static QmmpSettings * | instance () |
Detailed Description
The QmmpSettings class provides access to global settings.
- Author:
- Ilya Kotov <forkotov02@hotmail.ru>
Member Enumeration Documentation
This enum describes possible replaygain modes.
- Enumerator:
REPLAYGAIN_TRACK |
Use track gain/peak
|
REPLAYGAIN_ALBUM |
Use album gain/peak
|
REPLAYGAIN_DISABLED |
Disable ReplayGain
|
Constructor & Destructor Documentation
Member Function Documentation
Emitted when audio settings are changed.
Returns buffer size in milliseconds.
If include is true, this function returns include cover file name filters, otherwise returns exclude filters.
Returns a depth of recursive cover file search.
Emitted when cover settings are changed.
Return true if content based file type determination is enabled. Otherwise returns false.
Returns equalizer settings.
Emitted when equalizer settings are changed.
Returns true if global proxy is enabled, otherwise returns false
Emitted when network settings are changed.
Returns preferd output format.
Returns global proxy url.
Reads equalizer settings. Call this function before equalizer usage.
- Parameters:
-
Returns default gain in dB.
Returns current ReplayGain mode.
Returns true if clipping prevention is enabled; otherwise returns false.
Emitted when ReplayGain settings are changed.
Sets audio settings.
- Parameters:
-
Sets buffer size.
- Parameters:
-
msec | Buffer size in milliseconds. |
void setCoverSettings |
( |
QStringList |
inc, |
|
|
QStringList |
exc, |
|
|
int |
depth, |
|
|
bool |
use_files |
|
) |
| |
Sets cover search options.
- Parameters:
-
inc | Include cover name filters |
exc | Exclude cover name filters |
depth | Depth of recursive cover file search. Recursive cover file search can be disabled by setting depth to 0. |
use_files | Use or not use files with covers. This parameter doesn't take effect in embedded covers. |
Enables/Disables file type determination by content.
- Parameters:
-
enabled | State of the content based type determination. (true - enabled, false - disabled). |
Changes equalizer settings to settings.
Sets network settings.
- Parameters:
-
use_proxy | Enables or disables global proxy. |
auth | Enables or disables proxy authentication. |
proxy | Proxy url. |
Sets ReplayGains settings.
- Parameters:
-
mode | ReplayGain mode. |
preamp | Preamp in dB. |
default_gain | Default gain in dB. |
clip | Clipping prevention state. |
Sets volume adjustment step.
- Parameters:
-
step | Volume adjustment step in percent. |
Returns true if cover file search is enabled; otherwise returns false.
Returns true if dithering is enabled; otherwise returns false.
Returns true if global proxy authentication is enabled, otherwise returns false
Returns true if software volume is enabled; otherwise returns false.
Returns volume adjustment step.
The documentation for this class was generated from the following file: