Audio Scenario

class AudioScenario(*args, **kwargs)[source]

Bases: PhysicalScenario[AudioDevice]

Scenario of phyical device bindings to sound cards.

Parameters:
  • seed (int, optional) – Random seed used to initialize the pseudo-random number generator.

  • devices (Sequence[Device], optional) – Devices to be added to the scenario during initialization.

new_device(*args, **kwargs)[source]

Create a new UHD device managed by the system.

Parameters:
  • *args – Device initialization parameters. Refer to AudioDevice for further details.

  • **kwargs – Device initialization parameters. Refer to AudioDevice for further details.

Return type:

AudioDevice

Returns: A handle to the initialized device.

yaml_tag = 'AudioSystem'