OpenRoadCode
Public API reference for OpenRoadCode
Loading...
Searching...
No Matches
audio_runtime_factory Namespace Reference

Select system audio control for the active deployment target. More...

Functions

AudioControllerIf create_audio_controller (*, RuntimeTarget|None target=None, int steps=20, AudioConfig|None config=None)
 Create the audio controller appropriate for a runtime target.

Detailed Description

Select system audio control for the active deployment target.

Function Documentation

◆ create_audio_controller()

AudioControllerIf audio_runtime_factory.create_audio_controller ( * ,
RuntimeTarget | None target = None,
int steps = 20,
AudioConfig | None config = None )

Create the audio controller appropriate for a runtime target.

Parameters
targetExplicit target, or None to detect the current host.
stepsNumber of discrete volume levels.
configPreferred output and optional stable device-name match.
Returns
Platform-appropriate system audio controller.