Commit 377df083 authored by Laurent Aimar's avatar Laurent Aimar
Browse files

* equalizer : [0] isn't cool, use a define.

parent 58b6fda7
...@@ -91,7 +91,7 @@ vlc_module_end(); ...@@ -91,7 +91,7 @@ vlc_module_end();
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
*****************************************************************************/ *****************************************************************************/
#define EQZ_BANDS_MAX 10
typedef struct aout_filter_sys_t typedef struct aout_filter_sys_t
{ {
/* Filter static config */ /* Filter static config */
...@@ -210,7 +210,7 @@ typedef struct ...@@ -210,7 +210,7 @@ typedef struct
float f_alpha; float f_alpha;
float f_beta; float f_beta;
float f_gamma; float f_gamma;
} band[0]; } band[EQZ_BANDS_MAX];
} eqz_config_t; } eqz_config_t;
...@@ -253,7 +253,7 @@ typedef struct ...@@ -253,7 +253,7 @@ typedef struct
char *psz_name; char *psz_name;
int i_band; int i_band;
float f_preamp; float f_preamp;
float f_amp[0]; float f_amp[EQZ_BANDS_MAX];
} eqz_preset_t; } eqz_preset_t;
static const eqz_preset_t eqz_preset_flat_10b= static const eqz_preset_t eqz_preset_flat_10b=
......
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