#include <glib.h>
#include <math.h>
#include <string.h>
#include <libaudcore/audstrings.h>
#include <libaudcore/hook.h>
#include "equalizer.h"
#include "misc.h"
Go to the source code of this file.
Defines | |
#define | EQ_BANDS AUD_EQUALIZER_NBANDS |
#define | MAX_CHANNELS 10 |
#define | Q 1.2247449 |
Functions | |
static void | bp2 (gfloat *a, gfloat *b, gfloat fc, gfloat q) |
void | eq_set_format (gint new_channels, gint new_rate) |
static void | eq_set_bands_real (gdouble preamp, gdouble *values) |
void | eq_filter (gfloat *data, gint samples) |
static void | eq_update (void *data, void *user) |
void | eq_init (void) |
void | eq_set_bands (const gdouble *values) |
void | eq_get_bands (gdouble *values) |
void | eq_set_band (gint band, gdouble value) |
gdouble | eq_get_band (gint band) |
Variables | |
static const gfloat | CF [EQ_BANDS] |
static GStaticMutex | mutex = G_STATIC_MUTEX_INIT |
static gboolean | active |
static gint | channels |
static gint | rate |
static gfloat | a [EQ_BANDS][2] |
static gfloat | b [EQ_BANDS][2] |
static gfloat | wqv [MAX_CHANNELS][EQ_BANDS][2] |
static gfloat | gv [MAX_CHANNELS][EQ_BANDS] |
static gint | K |
#define EQ_BANDS AUD_EQUALIZER_NBANDS |
Definition at line 24 of file equalizer.c.
Referenced by eq_get_band(), eq_get_bands(), eq_set_band(), eq_set_bands(), eq_set_bands_real(), eq_set_format(), and eq_update().
#define MAX_CHANNELS 10 |
Definition at line 25 of file equalizer.c.
Referenced by eq_set_bands_real().
#define Q 1.2247449 |
Definition at line 29 of file equalizer.c.
Referenced by eq_set_format().
static void bp2 | ( | gfloat * | a, | |
gfloat * | b, | |||
gfloat | fc, | |||
gfloat | q | |||
) | [static] |
Definition at line 48 of file equalizer.c.
Referenced by eq_set_format().
void eq_filter | ( | gfloat * | data, | |
gint | samples | |||
) |
Definition at line 95 of file equalizer.c.
Referenced by write_processed().
gdouble eq_get_band | ( | gint | band | ) |
Definition at line 187 of file equalizer.c.
Referenced by audacious_rc_get_eq_band().
void eq_get_bands | ( | gdouble * | values | ) |
Definition at line 170 of file equalizer.c.
Referenced by audacious_rc_get_eq(), eq_get_band(), eq_set_band(), and eq_update().
void eq_init | ( | void | ) |
Definition at line 154 of file equalizer.c.
Referenced by init_two().
void eq_set_band | ( | gint | band, | |
gdouble | value | |||
) |
Definition at line 178 of file equalizer.c.
Referenced by audacious_rc_set_eq_band().
void eq_set_bands | ( | const gdouble * | values | ) |
Definition at line 162 of file equalizer.c.
Referenced by audacious_rc_set_eq(), and eq_set_band().
static void eq_set_bands_real | ( | gdouble | preamp, | |
gdouble * | values | |||
) | [static] |
Definition at line 84 of file equalizer.c.
Referenced by eq_update().
Definition at line 59 of file equalizer.c.
Referenced by open_audio().
static void eq_update | ( | void * | data, | |
void * | user | |||
) | [static] |
Definition at line 141 of file equalizer.c.
Referenced by eq_init().
gfloat a[EQ_BANDS][2] [static] |
Definition at line 41 of file equalizer.c.
Referenced by aud_md5_transform(), calc_freq(), do_fft(), eq_filter(), eq_set_format(), filename_compare(), playlist_remove_duplicates_by_scheme(), relocate_paths(), string_compare(), string_compare_encoded(), title_compare(), and tuple_compare().
Definition at line 39 of file equalizer.c.
Referenced by eq_filter(), eq_update(), on_show_filepopup_toggled(), and on_toggle_button_toggled().
gfloat b[EQ_BANDS][2] [static] |
Definition at line 42 of file equalizer.c.
Referenced by aud_md5_transform(), audacious_remote_set_main_volume(), do_fft(), eq_filter(), eq_set_format(), filename_compare(), playlist_remove_duplicates_by_scheme(), relocate_paths(), string_compare(), string_compare_encoded(), title_compare(), and tuple_compare().
const gfloat CF[EQ_BANDS] [static] |
{31.25, 62.5, 125, 250, 500, 1000, 2000, 4000, 8000, 16000}
Definition at line 35 of file equalizer.c.
Referenced by eq_set_format().
Definition at line 40 of file equalizer.c.
Referenced by effect_insert(), eq_filter(), and eq_set_format().
gfloat gv[MAX_CHANNELS][EQ_BANDS] [static] |
Definition at line 44 of file equalizer.c.
Referenced by eq_filter(), and eq_set_bands_real().
Definition at line 45 of file equalizer.c.
Referenced by eq_filter(), and eq_set_format().
GStaticMutex mutex = G_STATIC_MUTEX_INIT [static] |
Definition at line 38 of file equalizer.c.
Referenced by eq_filter(), eq_set_format(), and eq_update().
Definition at line 40 of file equalizer.c.
Referenced by effect_insert(), and eq_set_format().
gfloat wqv[MAX_CHANNELS][EQ_BANDS][2] [static] |
Definition at line 43 of file equalizer.c.
Referenced by eq_filter(), and eq_set_format().