[][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

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.

WasapiDevice

An opaque type that identifies an end point.

WasapiDevices

WASAPI implementation for Devices.

WasapiHost

The WASAPI host, the default windows host type.

WasapiStream

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

WasapiSupportedInputConfigs
WasapiSupportedOutputConfigs