Module cpal::platform

source ·
Expand description

Platform-specific items.

This module also contains the implementation of the platform’s dynamically dispatched Host type and its associated Device, Stream and other associated types. These types are useful in the case that users require switching between audio host APIs at runtime.

Structs

  • ALSA’s implementation for Devices.
  • The default linux, dragonfly, freebsd and netbsd host type.
  • The Device implementation associated with the platform’s dynamically dispatched Host type.
  • The Devices iterator associated with the platform’s dynamically dispatched Host type.
  • The platform’s dynamically dispatched Host type.
  • The Stream implementation associated with the platform’s dynamically dispatched Host type.
  • The SupportedInputConfigs iterator associated with the platform’s dynamically dispatched Host type.
  • The SupportedOutputConfigs iterator associated with the platform’s dynamically dispatched Host type.

Enums

Constants

  • All hosts supported by CPAL on this platform.

Functions

  • Produces a list of hosts that are currently available on the system.
  • The default host for the current compilation target platform.
  • Given a unique host identifier, initialise and produce the host if it is available.

Type Aliases