Expand description
The nannou audio API and implementation.
- Host - top-level access to device enumeration and spawning streams.
- Stream - for managing an input/output audio stream. This may be created via the App’s Audio API.
- Buffer - contains audio data, either for reading or writing.
This is passed to the
capture
orrender
function for each stream. - Devices - for enumerating all audio devices on the system.
- Device - for querying information about supported stream formats or for creating a stream targeted towards a specific audio device.
- Receiver and Requester for buffering input and output streams that may deliver buffers of inconsistent sizes into a stream of consistently sized buffers.
Re-exports§
pub use self::buffer::Buffer;
pub use self::device::Device;
pub use self::device::Devices;
pub use self::receiver::Receiver;
pub use self::requester::Requester;
pub use self::stream::Stream;
pub use cpal;
pub use dasp_sample;
Modules§
Structs§
- Backend
Specific Error - Some error has occurred that is specific to the backend from which it was produced.
- Host
- The top-level audio API, for enumerating devices and spawning input/output streams.
- Host
Unavailable - The requested host, although supported on this platform, is unavailable.
- Input
Callback Info - Information relevant to a single call to the user’s input stream data callback.
- Input
Stream Timestamp - A timestamp associated with a call to an input stream’s data callback.
- Output
Callback Info - Information relevant to a single call to the user’s output stream data callback.
- Output
Stream Timestamp - A timestamp associated with a call to an output stream’s data callback.
- Supported
Input Configs - The SupportedInputConfigs iterator associated with the platform’s dynamically dispatched Host type.
- Supported
Output Configs - The SupportedOutputConfigs iterator associated with the platform’s dynamically dispatched Host type.
- Supported
Stream Config - Describes a single supported stream configuration, retrieved via either a
SupportedStreamConfigRange
instance or one of theDevice::default_input/output_config
methods.
Enums§
- Buffer
Size - The buffer size used by the device.
- Build
Stream Error - Error that can happen when creating a
Stream
. - Default
Stream Config Error - May occur when attempting to request the default input or output stream format from a
Device
. - Device
Name Error - An error that may occur while attempting to retrieve a device name.
- Devices
Error - An error that might occur while attempting to enumerate the available devices on a system.
- HostId
- Unique identifier for available hosts on the platform.
- Pause
Stream Error - Errors that might occur when calling
pause_stream
. - Play
Stream Error - Errors that might occur when calling
play_stream
. - Stream
Error - Errors that might occur while a stream is running.
- Supported
Buffer Size - Describes the minimum and maximum supported buffer size for the device
- Supported
Stream Configs Error - Error that can happen when enumerating the list of supported formats.