Skip to main content

Module config

Module config 

Source
Expand description

Config structs, path resolution, and TOML parsing.

Structs§

Config
Top-level config structure.
DeviceConfig
[[devices]] — a named device alias.
EngineConfig
[engine] — sample rate and buffer size.
RouteConfig
[[routes]] — a channel mapping from one device to another.

Constants§

DEFAULT_BUFFER_SIZE
DEFAULT_SAMPLE_RATE

Functions§

default_config_path
Resolve the default config path.
read_config
Read and parse a TOML config file.
resolve_config_path
Resolve a config path from the optional positional CONFIG argument or the default path.