Module io

Source
Expand description

Traits, functions and type definitions for functioning audio I/O. The I/O feature provides types and functions for recording and playbacking audio aswell as handling the data.

Re-exports§

pub use cpal;

Modules§

playback
Offers playback capabilities via being a middleware on cpal.
record
Offers audio recording capabilities via being a middleware on cpal.

Structs§

HostDevice
The host’s audio input and output devices.
SoundPacket
The encoded sound packet. Contains useful information about the encoded packet.

Enums§

EncoderType
Shows the encoder type of the packet.

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.
get_audio_device
Get the default audio devices of the host. If one doesn’t exist it will get initialized with None.
host_from_id
Given a unique host identifier, initialise and produce the host if it is available.

Type Aliases§

InputDevice
Wrapper type for differentiating OutputDevice from InputDevice granted the user passes them in right when creating an [AudioDevice].
OutputDevice
Wrapper type for differentiating OutputDevice from InputDevice granted the user passes them in right when creating an [AudioDevice].