mirror of
https://github.com/alsa-project/alsa-lib.git
synced 2026-03-20 05:33:44 -04:00
Implements Repeat blocks for generating repetitive configuration patterns
with variable substitution. This feature allows applying a configuration
block multiple times with different variable values, significantly reducing
duplication in UCM configuration files.
iterator abstraction allows easy extension for future pattern types.
Example:
Repeat.VolumeInit {
Pattern {
Variable 'ch'
Type Integer
First 0
Last 7
Step 1
}
Apply {
cset "name='PCM Channel ${var:ch} Volume' 100%"
}
}
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
|
||
|---|---|---|
| .. | ||
| main.c | ||
| Makefile.am | ||
| parser.c | ||
| ucm_cond.c | ||
| ucm_confdoc.h | ||
| ucm_exec.c | ||
| ucm_include.c | ||
| ucm_local.h | ||
| ucm_regex.c | ||
| ucm_repeat.c | ||
| ucm_subs.c | ||
| utils.c | ||