Commit 6e9c9a93 authored by Francois Cartegnie's avatar Francois Cartegnie

Qt: Compressor: namespace initial values

parent aab5ebf3
...@@ -1230,18 +1230,7 @@ void Equalizer::addCallbacks( vlc_object_t *p_aout ) ...@@ -1230,18 +1230,7 @@ void Equalizer::addCallbacks( vlc_object_t *p_aout )
* Dynamic range compressor * Dynamic range compressor
**********************************************************************/ **********************************************************************/
typedef struct const Compressor::comp_controls_t Compressor::comp_controls[] =
{
const char *psz_name;
const char *psz_descs;
const char *psz_units;
const float f_min; // min
const float f_max; // max
const float f_value; // value
const float f_resolution; // resolution
} comp_controls_t;
static const comp_controls_t comp_controls[] =
{ {
{ "compressor-rms-peak", _("RMS/peak"), "", 0.0f, 1.0f, 0.00f, 0.001f }, { "compressor-rms-peak", _("RMS/peak"), "", 0.0f, 1.0f, 0.00f, 0.001f },
{ "compressor-attack", _("Attack"), _(" ms"), 1.5f, 400.0f, 25.00f, 0.100f }, { "compressor-attack", _("Attack"), _(" ms"), 1.5f, 400.0f, 25.00f, 0.100f },
......
...@@ -117,10 +117,22 @@ private slots: ...@@ -117,10 +117,22 @@ private slots:
class Compressor: public QWidget class Compressor: public QWidget
{ {
Q_OBJECT Q_OBJECT
public: public:
Compressor( intf_thread_t *, QWidget * ); Compressor( intf_thread_t *, QWidget * );
private: private:
typedef struct
{
const char *psz_name;
const char *psz_descs;
const char *psz_units;
const float f_min; // min
const float f_max; // max
const float f_value; // value
const float f_resolution; // resolution
} comp_controls_t;
static const comp_controls_t comp_controls[NUM_CP_CTRL];
QSlider *compCtrl[NUM_CP_CTRL]; QSlider *compCtrl[NUM_CP_CTRL];
QLabel *ctrl_texts[NUM_CP_CTRL]; QLabel *ctrl_texts[NUM_CP_CTRL];
QLabel *ctrl_readout[NUM_CP_CTRL]; QLabel *ctrl_readout[NUM_CP_CTRL];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment