## DEFAULT GENERAL SETTINGS ##

float_bits: 32;				# internal floating point precision
sampling_rate: 48000;		# sampling rate in Hz of audio interfaces
filter_length: 16384,4;		# length of filters
overflow_warnings: true;	# echo warnings to stderr if overflow occurs
show_progress: false;		# echo filtering progress to stderr
max_dither_table_size: 0;	# maximum size in bytes of precalculated dither
allow_poll_mode: false;		# allow use of input poll mode
modules_path: ".";			# extra path where to find BruteFIR modules
monitor_rate: false;		# monitor sample rate
powersave: true;			# pause filtering when input is zero
lock_memory: false;			# try to lock memory if realtime prio is set
convolver_config: "/etc/squeezeboxserver/BrutefirDrc/settings/wisdom"; # location of convolver config file

logic:
"eq" {
	{
		coeff: "equalizer";
		bands: 20, 40, 60, 100, 800, 1000, 2000, 3000, 4000, 5000, 6000, 7000, 8000, 9000, 10000, 12000, 16000;
		magnitude: 20/0.0, 40/0.0, 60/0.0, 100/0.0, 800/0.0, 1000/0.0, 2000/0.0, 3000/0.0, 4000/0.0, 5000/0.0, 6000/0.0, 7000/0.0, 8000/0.0, 9000/0.0, 10000/0.0, 12000/0.0, 16000/0.0;
	};
};

coeff "equalizer" {
		filename: "dirac pulse";
		shared_mem: true;
		blocks: 4;
};


## INPUT DEFAULTS ##

input "l_in","r_in" {
device: "file" {path: "/dev/stdin";}; # module and parameters to get audio
sample: "S24_LE"; # sample format
channels: 2/0,1; # number of open channels / which to use
delay: 0,0; # delay in samples for each channel
maxdelay: -1; # max delay for variable delays
mute: false,false; # mute active on startup for each channel
};

## OUTPUT DEFAULTS ##

output "l_out","r_out" {
device: "file" {path: "/dev/stdout";}; # module and parameters to put audio
sample: "S24_LE"; # sample format
channels: 2/0,1; # number of open channels / which to use
delay: 0,0; # delay in samples for each channel
maxdelay: -1; # max delay for variable delays
mute: false,false; # mute active on startup for each channel
dither: true; # apply dither
};

# Add equalizer
filter "eq_l" {
from_inputs: "l_in"/0.0;
to_outputs: "l_out";
process: -1; # process index to run in (-1 means auto)
coeff: "equalizer";
delay: 0; # predelay, in blocks
crossfade: false; # crossfade when coefficient is changed
};

filter "eq_r" {
from_inputs: "r_in"/0.0;
to_outputs: "r_out";
process: -1; # process index to run in (-1 means auto)
coeff: "equalizer";
delay: 0; # predelay, in blocks
crossfade: false; # crossfade when coefficient is changed
};

