[][src]Module cpal::platform

Platform-specific items.

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

Structs

AlsaDevice
AlsaDevices

ALSA implementation for Devices.

AlsaHost

The default linux, dragonfly and freebsd host type.

AlsaStream
Device

The Device implementation associated with the platform's dynamically dispatched Host type.

Devices

The Devices iterator associated with the platform's dynamically dispatched Host type.

Host

The platform's dynamically dispatched Host type.

Stream

The Stream implementation associated with the platform's dynamically dispatched Host type.

SupportedInputConfigs

The SupportedInputConfigs iterator associated with the platform's dynamically dispatched Host type.

SupportedOutputConfigs

The SupportedOutputConfigs iterator associated with the platform's dynamically dispatched Host type.

Enums

HostId

Unique identifier for available hosts on the platform.

Constants

ALL_HOSTS

All hosts supported by CPAL on this platform.

Functions

available_hosts

Produces a list of hosts that are currently available on the system.

default_host

The default host for the current compilation target platform.

host_from_id

Given a unique host identifier, initialise and produce the host if it is available.

Type Definitions

AlsaSupportedInputConfigs
AlsaSupportedOutputConfigs