Commit a05e4de0 authored by Rafaël Carré's avatar Rafaël Carré

audiobargraph_a: parse config chain options

parent 27f1750c
...@@ -117,6 +117,12 @@ static int Open( vlc_object_t *p_this ) ...@@ -117,6 +117,12 @@ static int Open( vlc_object_t *p_this )
if (!p_sys) if (!p_sys)
return VLC_ENOMEM; return VLC_ENOMEM;
static const char *const options[] = {
"bargraph", "bargraph_repetition", "silence", "time_window",
"alarm_threshold", "repetition_time", NULL
};
config_ChainParse(p_filter, CFG_PREFIX, options, p_filter->p_cfg);
p_sys->bargraph = !!var_CreateGetInteger(p_filter, CFG_PREFIX "bargraph"); p_sys->bargraph = !!var_CreateGetInteger(p_filter, CFG_PREFIX "bargraph");
p_sys->bargraph_repetition = var_CreateGetInteger(p_filter, CFG_PREFIX "bargraph_repetition"); p_sys->bargraph_repetition = var_CreateGetInteger(p_filter, CFG_PREFIX "bargraph_repetition");
p_sys->silence = !!var_CreateGetInteger(p_filter, CFG_PREFIX "silence"); p_sys->silence = !!var_CreateGetInteger(p_filter, CFG_PREFIX "silence");
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment