Mercurial > audlegacy
comparison src/audacious/output.c @ 3686:259b7d3e0976
sed s/bmp_cfg_db/cfg_db/.
author | William Pitcock <nenolod@atheme.org> |
---|---|
date | Tue, 02 Oct 2007 21:21:50 -0500 |
parents | 7865f8395437 |
children | 418ac922ce87 |
comparison
equal
deleted
inserted
replaced
3685:0ba593887cae | 3686:259b7d3e0976 |
---|---|
259 | 259 |
260 #ifdef USE_SRC | 260 #ifdef USE_SRC |
261 ConfigDb *db; | 261 ConfigDb *db; |
262 gboolean src_enabled; | 262 gboolean src_enabled; |
263 gint src_rate, src_type; | 263 gint src_rate, src_type; |
264 db = bmp_cfg_db_open(); | 264 db = cfg_db_open(); |
265 | 265 |
266 if (bmp_cfg_db_get_bool(db, NULL, "enable_src", &src_enabled) == FALSE) | 266 if (cfg_db_get_bool(db, NULL, "enable_src", &src_enabled) == FALSE) |
267 src_enabled = FALSE; | 267 src_enabled = FALSE; |
268 | 268 |
269 if (bmp_cfg_db_get_int(db, NULL, "src_rate", &src_rate) == FALSE) | 269 if (cfg_db_get_int(db, NULL, "src_rate", &src_rate) == FALSE) |
270 overSamplingFs = 48000; | 270 overSamplingFs = 48000; |
271 else | 271 else |
272 overSamplingFs = src_rate; | 272 overSamplingFs = src_rate; |
273 | 273 |
274 /* don't resample if sampling rates are the same --nenolod */ | 274 /* don't resample if sampling rates are the same --nenolod */ |
275 if (rate == overSamplingFs) | 275 if (rate == overSamplingFs) |
276 src_enabled = FALSE; | 276 src_enabled = FALSE; |
277 | 277 |
278 if (bmp_cfg_db_get_int(db, NULL, "src_type", &src_type) == FALSE) | 278 if (cfg_db_get_int(db, NULL, "src_type", &src_type) == FALSE) |
279 converter_type = SRC_SINC_BEST_QUALITY; | 279 converter_type = SRC_SINC_BEST_QUALITY; |
280 else | 280 else |
281 converter_type = src_type; | 281 converter_type = src_type; |
282 | 282 |
283 bmp_cfg_db_close(db); | 283 cfg_db_close(db); |
284 | 284 |
285 freeSRC(); | 285 freeSRC(); |
286 | 286 |
287 if(src_enabled&& | 287 if(src_enabled&& |
288 (fmt == FMT_S16_NE||(fmt == FMT_S16_LE && G_BYTE_ORDER == G_LITTLE_ENDIAN)|| | 288 (fmt == FMT_S16_NE||(fmt == FMT_S16_LE && G_BYTE_ORDER == G_LITTLE_ENDIAN)|| |