- 积分
- 261
- 在线时间
- 254 小时
- 最后登录
- 2021-11-30
- 阅读权限
- 50
- 精华
- 0
- UID
- 254029
- 帖子
- 204
- 精华
- 0
- 经验
- 261 点
- 金钱
- 198 ¥
- 注册时间
- 2010-10-25
|
楼主 |
发表于 2018-3-30 02:41
|
显示全部楼层
设置文件的内容主要包含四个部分:
1, 基本设置(default general settings)
2, 参数设置(Coeff defaults)
3, 输入输出端口设置(Output Input Defaults)
4, 滤波器设置(Filter Defaults)
各部分设置中有些项可以忽略不写入设置文件。下面的设置文件和注解供有需要的人参考:
## DEFAULT GENERAL SETTINGS ##
float_bits: 32; # 浮点精度(32 或 64)
sampling_rate: 96000; # 取样频率(Hz)
filter_length: 2048,32; # 滤波器长度,个数(这两个数的设置影响到分频器的系统延时)
#config_file: "~/brutefir.txt"; # 设置文件位置
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: "/usr/lib/brutefir"; # extra path where to find BruteFIR modules
monitor_rate: false; # monitor sample rate
powersave: true; # pause filtering when input is zero
lock_memory: true; # try to lock memory if realtime prio is set
convolver_config: "~/.brutefir_convolver"; # location of convolver config file
## LOGIC ##
## COEFFS ##
coeff "c-low" { #滤波器参数名称(低通)
filename: "low.txt"; #滤波器文件名称
format: "text"; #滤波器文件格式
};
coeff "c-mid" { #滤波器参数名称(带通)
filename: "mid.txt";
format: "text";
};
coeff "c-high" { #滤波器参数名称(高通)
filename: "high.txt";
format: "text";
};
## INPUT, OUTPUT ##
input "left", "right" { #输入端口定义
device: "alsa" { device: "hw";}; # ignore_xrun: true; }; #输入设备
sample: "S32_LE"; #取样信号格式
channels: 4/0,1; #可用输入端口数/使用端口
delay: 0,0; #通道延时
};
output "llow", "rlow", "lmid", "rmid", "lhigh", "rhigh" { #输出端口定义
device: "alsa" { device: "hw";}; # ignore_xrun: true; }; #输出设备
sample: "S32_LE"; #取样信号格式
channels: 6/0,1,2,3,4,5; #可用输出端口/使用输出端口
delay: 0,0,0,0,0,0; #通道延时
dither: false;
};
## FILTERS ##
filter "l-low" { #左通道低通滤波器名称
from_inputs: "left"/0; #输入端口
to_outputs: "llow"/0; #输出端口
coeff: "c-low"; #使用的滤波器参数名称
};
filter "r-low" { #右通道低通滤波器名称
from_inputs: "right"/0; #输入端口
to_outputs: "rlow"/0; #输出端口
coeff: "c-low"; #使用的滤波器参数名称,左右通道使用同一个参数
};
filter "l-mid" { #左通道带通滤波器名称
from_inputs: "left"/0;
to_outputs: "lmid"/0;
coeff: "c-mid";
};
filter "r-mid" { #右通道带通滤波器名称
from_inputs: "right"/0;
to_outputs: "rmid"/0;
coeff: "c-mid";
};
filter "l-high" { #左通道高通滤波器名称
from_inputs: "left"/0;
to_outputs: "lhigh"/0;
coeff: "c-high";
};
filter "r-high" { #右通道高通滤波器名称
from_inputs: "right"/0;
to_outputs: "rhigh"/0;
coeff: "c-high";
};
|
|