Skip to main content

Module devices

Module devices 

Source
Expand description

CPAL device enumeration and resolution.

This module bridges the validated config plan to CPAL audio devices.

Structs§

ResolvedAudioDevices
A fully resolved set of devices, ready for stream opening.
ResolvedDevice
Information about a resolved audio device.

Functions§

find_stream_config
Find the best supported stream config for a device at the given sample rate.
print_devices
Print all available audio devices with their input and output channel counts. Does not read config.
resolve_devices
Resolve all devices in the validated config against actual CPAL devices.
verify_device_openable
Play silence to a device briefly to verify it can be opened.