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§

  • 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.
  • An opaque type that identifies an end point.
  • WASAPI implementation for Devices.
  • The WASAPI host, the default windows 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§