comparison src/audlegacy/output.c @ 4851:8ebd8358de04

On second thought, apply equalizer settings on (re)opening audio
author John Lindgren <john.lindgren@tds.net>
date Mon, 13 Apr 2009 01:18:06 -0400
parents 6c131c192b92
children a6feb7c0f722
comparison
equal deleted inserted replaced
4850:47b72fc78e92 4851:8ebd8358de04
27 27
28 #ifdef HAVE_CONFIG_H 28 #ifdef HAVE_CONFIG_H
29 # include "config.h" 29 # include "config.h"
30 #endif 30 #endif
31 31
32 #include "audconfig.h"
33 #include "equalizer.h"
32 #include "output.h" 34 #include "output.h"
33 #include "main.h" 35 #include "main.h"
34 #include "input.h" 36 #include "input.h"
35 #include "playback.h" 37 #include "playback.h"
36 38
300 AUDDBG("opened audio: fmt=%d, rate=%d, nch=%d\n", fmt, rate, nch); 302 AUDDBG("opened audio: fmt=%d, rate=%d, nch=%d\n", fmt, rate, nch);
301 op_state.fmt = fmt; 303 op_state.fmt = fmt;
302 op_state.rate = rate; 304 op_state.rate = rate;
303 op_state.nch = nch; 305 op_state.nch = nch;
304 306
307 output_set_eq (cfg.equalizer_active, cfg.equalizer_preamp,
308 cfg.equalizer_bands);
305 return TRUE; 309 return TRUE;
306 } else { 310 } else {
307 return FALSE; 311 return FALSE;
308 } 312 }
309 } 313 }