module
Obsctl::Domain::Aliases
Overview
Resolves user targets against configured aliases, shortcuts, and OBS names.
Defined in:
obsctl/domain/aliases.crClass Method Summary
-
.resolve_audio(config : Config::Config, target : String, live_names : Array(String)) : Config::AudioInputConfig
Resolves configured aliases first while also accepting input names discovered from the current OBS snapshot.
-
.resolve_audio(config : Config::Config, target : String) : Config::AudioInputConfig
Resolves an audio target using the same priority as scene resolution.
-
.resolve_scene(config : Config::Config, target : String, live_names : Array(String)) : Config::SceneConfig
Resolves configured aliases first while also accepting scene names discovered from the current OBS snapshot.
-
.resolve_scene(config : Config::Config, target : String) : Config::SceneConfig
Resolves a scene target using shortcut, alias, name, then case-insensitive alias/name matching.
-
.volume_percent_to_mul(percent : Int32) : Float64
Converts user-facing 0-100 volume to obs-websocket multiplier form.
Class Method Detail
Resolves configured aliases first while also accepting input names discovered from the current OBS snapshot.
Resolves an audio target using the same priority as scene resolution.
Resolves configured aliases first while also accepting scene names discovered from the current OBS snapshot.
Resolves a scene target using shortcut, alias, name, then case-insensitive alias/name matching.
Converts user-facing 0-100 volume to obs-websocket multiplier form.