Data

Trait Data 

Source
pub trait Data {
    // Required methods
    fn does_stream_format_match(stream_format: &StreamFormat) -> bool;
    unsafe fn from_input_proc_args(
        num_frames: u32,
        io_data: *mut AudioBufferList,
    ) -> Self;
}
Expand description

Audio data wrappers specific to the AudioUnit’s AudioFormat.

Required Methods§

Source

fn does_stream_format_match(stream_format: &StreamFormat) -> bool

Check whether the stream format matches this type of data.

Source

unsafe fn from_input_proc_args( num_frames: u32, io_data: *mut AudioBufferList, ) -> Self

We must be able to construct Self from arguments given to the input_proc.

§Safety

TODO document how to use this function safely.

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§

Source§

impl Data for Raw

Source§

impl<S> Data for Interleaved<S>
where S: Sample,

Source§

impl<S> Data for InterleavedBytes<S>
where S: Sample,

Source§

impl<S> Data for NonInterleaved<S>
where S: Sample,