#include <EqualizerPresets.h>
The EQ_Setting class. Container for Equalizer configurations.
void EQ_Setting::append_value |
( |
int |
val | ) |
|
append a value. If there are already more than 10 values, nothing happens
- Parameters
-
static EQ_Setting EQ_Setting::fromString |
( |
const QString & |
str | ) |
|
|
static |
converts a string to a EQ_Setting. If not possible a default constructed EQ_Setting is returned
- Parameters
-
- Returns
static QList<int> EQ_Setting::get_default_values |
( |
const QString & |
name | ) |
|
|
static |
get default values for a specific preset. If the preset does not have default values, an empty list is returned
- Parameters
-
- Returns
- value list if name belongs to a default preset. Empty list else
get default settings
- Returns
- list of default settings
bool EQ_Setting::is_default |
( |
| ) |
const |
checks, if preset is default preset
- Returns
- true if preset is default preset, false else
bool EQ_Setting::is_default_name |
( |
| ) |
const |
checks, if the preset name belongs to a default preset
- Returns
- true if preset is default preset, false else
static bool EQ_Setting::is_default_name |
( |
const QString & |
name | ) |
|
|
static |
QString EQ_Setting::name |
( |
| ) |
const |
get name of setting
- Returns
bool EQ_Setting::operator== |
( |
const EQ_Setting & |
s | ) |
const |
Compares the case insensitive string representation of two settings.
- Parameters
-
- Returns
void EQ_Setting::set_name |
( |
const QString & |
name | ) |
|
set name of setting
- Parameters
-
void EQ_Setting::set_value |
( |
int |
idx, |
|
|
int |
val |
|
) |
| |
set specific value for band
- Parameters
-
idx | band index |
val | database formatted value |
void EQ_Setting::set_values |
( |
const QList< int > |
values | ) |
|
set all values for a specific index. If there are more than 10 values, list is stripped. If there are less, the list is filled with zeros
- Parameters
-
QString EQ_Setting::toString |
( |
| ) |
const |
int EQ_Setting::value |
( |
int |
idx | ) |
const |
get specific value for a band idx. if idx is not valid, 0 is returned
- Parameters
-
- Returns
- database value if idx is valid, 0 else
QList<int> EQ_Setting::values |
( |
| ) |
const |
get database values for setting
- Returns