Skip to main content

Buffers

Enum Buffers 

Source
pub enum Buffers<'a> {
    SInt8 {
        output: &'a mut [i8],
        input: &'a [i8],
    },
    SInt16 {
        output: &'a mut [i16],
        input: &'a [i16],
    },
    SInt24 {
        output: &'a mut [u8],
        input: &'a [u8],
    },
    SInt32 {
        output: &'a mut [i32],
        input: &'a [i32],
    },
    Float32 {
        output: &'a mut [f32],
        input: &'a [f32],
    },
    Float64 {
        output: &'a mut [f64],
        input: &'a [f64],
    },
}
Expand description

The input/output audio buffers.

Variants§

§

SInt8

Input/output buffers of 8-bit signed integers.

Fields

§output: &'a mut [i8]
§input: &'a [i8]
§

SInt16

Input/output buffers of 16-bit signed integers.

Fields

§output: &'a mut [i16]
§input: &'a [i16]
§

SInt24

Input/output buffers of 24-bit signed integers.

These buffers are presented as raw bytes. Each sample in a frame is 3 bytes.

The endianness will always be in the host’s native byte order.

Fields

§output: &'a mut [u8]
§input: &'a [u8]
§

SInt32

Input/output buffers of 32-bit signed integers.

Fields

§output: &'a mut [i32]
§input: &'a [i32]
§

Float32

Input/output buffers of 32-bit floating point numbers.

Fields

§output: &'a mut [f32]
§input: &'a [f32]
§

Float64

Input/output buffers of 64-bit floating point numbers.

Fields

§output: &'a mut [f64]
§input: &'a [f64]

Trait Implementations§

Source§

impl<'a> Debug for Buffers<'a>

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl<'a> PartialEq for Buffers<'a>

Source§

fn eq(&self, other: &Self) -> bool

Equality operator ==. Read more
1.0.0 (const: unstable) · Source§

fn ne(&self, other: &Rhs) -> bool

Inequality operator !=. Read more
Source§

impl<'a> StructuralPartialEq for Buffers<'a>

Auto Trait Implementations§

§

impl<'a> !UnwindSafe for Buffers<'a>

§

impl<'a> Freeze for Buffers<'a>

§

impl<'a> RefUnwindSafe for Buffers<'a>

§

impl<'a> Send for Buffers<'a>

§

impl<'a> Sync for Buffers<'a>

§

impl<'a> Unpin for Buffers<'a>

§

impl<'a> UnsafeUnpin for Buffers<'a>

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T> Instrument for T

Source§

fn instrument(self, span: Span) -> Instrumented<Self> ⓘ

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more
Source§

fn in_current_span(self) -> Instrumented<Self> ⓘ

Instruments this type with the current Span, returning an Instrumented wrapper. Read more
Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = !

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, !>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.
Source§

impl<T> WithSubscriber for T

Source§

fn with_subscriber<S>(self, subscriber: S) -> WithDispatch<Self> ⓘ
where S: Into<Dispatch>,

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more
Source§

fn with_current_subscriber(self) -> WithDispatch<Self> ⓘ

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more