Expand description
The audio module provides primitives for working with multi-channel audio buffers of varying
sample formats.
Structs§
- Audio
Buffer AudioBufferis a container for multi-channel planar audio sample data. AnAudioBufferis characterized by the duration (capacity), and audio specification (channels and sample rate). The capacity of anAudioBufferis the maximum number of samples the buffer may store per channel. Manipulation of samples is accomplished through the Signal trait or direct buffer manipulation.- Audio
Planes AudioPlanesprovides immutable slices to each audio channel (plane) contained in a signal.- Audio
Planes Mut AudioPlanesMutprovides mutable slices to each audio channel (plane) contained in a signal.- Channels
- A bitmask representing the audio channels in an audio buffer or signal.
- Channels
Iter - An iterator over individual channels within a
Channelsbitmask. - RawSample
Buffer - A
RawSampleBuffer, is a byte-oriented sample buffer. All samples copied to this buffer are converted into their packed data-type and stored as a stream of bytes.RawSampleBufferis mean’t for safely importing and exporting sample data to and from Symphonia as raw bytes. - Sample
Buffer - A
SampleBuffer, is a sample oriented buffer. It is agnostic to the ordering/layout of samples within the buffer.SampleBufferis mean’t for safely importing and exporting sample data to and from Symphonia using the sample’s in-memory data-type. - Signal
Spec SignalSpecdescribes the characteristics of a Signal.
Enums§
- Audio
Buffer Ref AudioBufferRefis a copy-on-write reference to anAudioBufferof any type.- Layout
Layoutdescribes common audio channel configurations.
Traits§
- AsAudio
Buffer Ref AsAudioBufferRefis a trait implemented forAudioBuffers that may be referenced in anAudioBufferRef.- RawSample
RawSampleprovides a typed interface for converting aSamplefrom it’s in-memory data type to actual binary type.- Signal
- The
Signaltrait provides methods for rendering and transforming contiguous buffers of audio data.