Skip to main content

Module traits

Module traits 

Source
Expand description

The suite of traits allowing CPAL to abstract over hosts, devices, event loops and stream IDs.

§Custom Host Implementations

When implementing custom hosts with the custom feature, use the assert_stream_send! and assert_stream_sync! macros to verify your Stream type meets CPAL’s requirements.

Traits§

DeviceTrait
A device that is capable of audio input and/or output.
HostTrait
A Host provides access to the available audio devices on the system.
StreamTrait
A stream created from Device, with methods to control playback.