pub trait ProjectAudioSources: AudioBlockProvider {
// Provided method
fn prepare(
&mut self,
_needs: &[AudioNeed],
_cancel: &CancelToken,
) -> Result<(), AudioWindowError> { ... }
}Expand description
The audio a project mix reads: decoded whole (DecodedAudioSources), or held in windows a
host fills as the mix reaches them (crate::audio_windows::WindowedAudioSources).
Provided Methods§
Sourcefn prepare(
&mut self,
_needs: &[AudioNeed],
_cancel: &CancelToken,
) -> Result<(), AudioWindowError>
fn prepare( &mut self, _needs: &[AudioNeed], _cancel: &CancelToken, ) -> Result<(), AudioWindowError>
Makes ready what needs reads, before the block that reads it renders. Audio decoded
whole needs nothing.
§Errors
What decoding or holding the audio met.
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".
Implementors§
impl ProjectAudioSources for DecodedAudioSources
Available on crate feature
engine only.