Expand description
§Audio API.
Re-exports§
pub use crate::clock::FTs;
Structs§
- Blep
AmpFilter - A wrapper Blep implementation that filters pulses’ ∆ amplitude before sending them to the underlying implementation.
- Blep
Stereo - A wrapper Blep implementation that redirects extra channels to a stereo Blep as a monophonic channel.
- EarIn
Amps2 - Implements AmpLevels trait, useful when rendering EAR IN audio.
- EarMic
Amps4 - Implements AmpLevels trait, useful when rendering combined EAR OUT and MIC OUT audio signal.
- EarOut
Amps4 - Implements AmpLevels trait, useful when rendering EAR OUT audio ignoring MIC OUT signal.
Constants§
- AMPS_
EAR_ IN - AMPS_
EAR_ IN_ I16 - AMPS_
EAR_ IN_ I32 - AMPS_
EAR_ MIC - AMPS_
EAR_ MIC_ I16 - AMPS_
EAR_ MIC_ I32 - AMPS_
EAR_ OUT - AMPS_
EAR_ OUT_ I16 - AMPS_
EAR_ OUT_ I32
Traits§
- AmpLevels
- A digital level to a sample amplitude conversion trait.
- Audio
Frame - A common trait for controllers rendering square-wave audio pulses.
- Audio
Sample - Provides various methods to primitive types being used as audio samples.
- Blep
- A trait for interfacing Bandwidth-Limited Pulse Buffer implementations by square-wave audio generators.
- EarIn
Audio Frame - A trait for controllers generating audio pulses from the EAR input.
- EarMic
OutAudio Frame - A trait for controllers generating audio pulses from the EAR/MIC output.
- From
Sample - For converting samples between types.
- Into
Sample - For converting samples between types.
- MulNorm
- This trait is being used for scaling sample amplitudes.
- Sample
Delta - This trait is being used to calculate sample amplitude differences (∆).
Functions§
- render_
audio_ frame_ ts - A helper method for rendering square-wave audio from slices containing updates of audio digital levels, sorted by T-state counter value.
- render_
audio_ frame_ vts - A helper method for rendering square-wave audio from slices containing updates of audio digital levels, sorted by time encoded in VideoTs time stamps.