comparison 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
comparison
equal deleted inserted replaced
4259:92642f860860 4267:a41fb6bc632a
42 #include <unistd.h> 42 #include <unistd.h>
43 #include <errno.h> 43 #include <errno.h>
44 #include <sys/types.h> 44 #include <sys/types.h>
45 #include <sys/stat.h> 45 #include <sys/stat.h>
46 #include <signal.h> 46 #include <signal.h>
47
48 #ifdef USE_SRC
49 # include <samplerate.h>
50 #endif
47 51
48 #include "platform/smartinclude.h" 52 #include "platform/smartinclude.h"
49 53
50 #include "configdb.h" 54 #include "configdb.h"
51 #include "vfs.h" 55 #include "vfs.h"
237 TRUE, /* track mode */ 241 TRUE, /* track mode */
238 FALSE, /* album mode */ 242 FALSE, /* album mode */
239 FALSE, /* enable adaptive scaler */ 243 FALSE, /* enable adaptive scaler */
240 0.0, /* preamp */ 244 0.0, /* preamp */
241 -9.0, /* default gain */ 245 -9.0, /* default gain */
246 #ifdef USE_SRC
247 FALSE, /* enable resampling */
248 48000, /* samplerate */
249 SRC_SINC_BEST_QUALITY, /* default interpolation method */
250 #endif
242 }; 251 };
243 252
244 typedef struct bmp_cfg_boolent_t { 253 typedef struct bmp_cfg_boolent_t {
245 char const *be_vname; 254 char const *be_vname;
246 gboolean *be_vloc; 255 gboolean *be_vloc;
353 {"enable_replay_gain", &cfg.enable_replay_gain, TRUE}, 362 {"enable_replay_gain", &cfg.enable_replay_gain, TRUE},
354 {"enable_clipping_prevention", &cfg.enable_clipping_prevention, TRUE}, 363 {"enable_clipping_prevention", &cfg.enable_clipping_prevention, TRUE},
355 {"replay_gain_track", &cfg.replay_gain_track, TRUE}, 364 {"replay_gain_track", &cfg.replay_gain_track, TRUE},
356 {"replay_gain_album", &cfg.replay_gain_album, TRUE}, 365 {"replay_gain_album", &cfg.replay_gain_album, TRUE},
357 {"enable_adaptive_scaler", &cfg.enable_adaptive_scaler, TRUE}, 366 {"enable_adaptive_scaler", &cfg.enable_adaptive_scaler, TRUE},
367 #ifdef USE_SRC
368 {"enable_src", &cfg.enable_src, TRUE},
369 #endif
358 }; 370 };
359 371
360 static gint ncfgbent = G_N_ELEMENTS(bmp_boolents); 372 static gint ncfgbent = G_N_ELEMENTS(bmp_boolents);
361 373
362 static bmp_cfg_nument bmp_numents[] = { 374 static bmp_cfg_nument bmp_numents[] = {
391 {"filepopup_delay", &cfg.filepopup_delay, TRUE}, 403 {"filepopup_delay", &cfg.filepopup_delay, TRUE},
392 {"colorize_r", &cfg.colorize_r, TRUE}, 404 {"colorize_r", &cfg.colorize_r, TRUE},
393 {"colorize_g", &cfg.colorize_g, TRUE}, 405 {"colorize_g", &cfg.colorize_g, TRUE},
394 {"colorize_b", &cfg.colorize_b, TRUE}, 406 {"colorize_b", &cfg.colorize_b, TRUE},
395 {"output_bit_depth", &cfg.output_bit_depth, TRUE}, 407 {"output_bit_depth", &cfg.output_bit_depth, TRUE},
408 #ifdef USE_SRC
409 {"src_rate", &cfg.src_rate, TRUE},
410 {"src_type", &cfg.src_type, TRUE},
411 #endif
396 }; 412 };
397 413
398 static gint ncfgient = G_N_ELEMENTS(bmp_numents); 414 static gint ncfgient = G_N_ELEMENTS(bmp_numents);
399 415
400 static bmp_cfg_strent bmp_strents[] = { 416 static bmp_cfg_strent bmp_strents[] = {