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§
- Host
Device - The host’s audio input and output devices.
- Sound
Packet - The encoded sound packet. Contains useful information about the encoded packet.
Enums§
- Encoder
Type - 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§
- Input
Device - Wrapper type for differentiating
OutputDevice
fromInputDevice
granted the user passes them in right when creating an [AudioDevice
]. - Output
Device - Wrapper type for differentiating
OutputDevice
fromInputDevice
granted the user passes them in right when creating an [AudioDevice
].