Mercurial > audlegacy
diff src/audacious/main.c @ 4267:a41fb6bc632a
- src stuff traveled to src_flow.c
- vis works again.
author | Eugene Zagidullin <e.asphyx@gmail.com> |
---|---|
date | Sun, 10 Feb 2008 07:19:45 +0300 |
parents | b0ca963fd965 |
children | af324ff0a983 |
line wrap: on
line diff
--- a/src/audacious/main.c Sat Feb 09 01:05:36 2008 +0300 +++ b/src/audacious/main.c Sun Feb 10 07:19:45 2008 +0300 @@ -45,6 +45,10 @@ #include <sys/stat.h> #include <signal.h> +#ifdef USE_SRC +# include <samplerate.h> +#endif + #include "platform/smartinclude.h" #include "configdb.h" @@ -239,6 +243,11 @@ FALSE, /* enable adaptive scaler */ 0.0, /* preamp */ -9.0, /* default gain */ +#ifdef USE_SRC + FALSE, /* enable resampling */ + 48000, /* samplerate */ + SRC_SINC_BEST_QUALITY, /* default interpolation method */ +#endif }; typedef struct bmp_cfg_boolent_t { @@ -355,6 +364,9 @@ {"replay_gain_track", &cfg.replay_gain_track, TRUE}, {"replay_gain_album", &cfg.replay_gain_album, TRUE}, {"enable_adaptive_scaler", &cfg.enable_adaptive_scaler, TRUE}, +#ifdef USE_SRC + {"enable_src", &cfg.enable_src, TRUE}, +#endif }; static gint ncfgbent = G_N_ELEMENTS(bmp_boolents); @@ -393,6 +405,10 @@ {"colorize_g", &cfg.colorize_g, TRUE}, {"colorize_b", &cfg.colorize_b, TRUE}, {"output_bit_depth", &cfg.output_bit_depth, TRUE}, +#ifdef USE_SRC + {"src_rate", &cfg.src_rate, TRUE}, + {"src_type", &cfg.src_type, TRUE}, +#endif }; static gint ncfgient = G_N_ELEMENTS(bmp_numents);