Enum rtaudio::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

Fields

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

Input/output buffers of 8-bit signed integers.

§

SInt16

Fields

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

Input/output buffers of 16-bit signed integers.

§

SInt24

Fields

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

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.

§

SInt32

Fields

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

Input/output buffers of 32-bit signed integers.

§

Float32

Fields

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

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

§

Float64

Fields

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

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

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: &Buffers<'a>) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0 · source§

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

This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
source§

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

Auto Trait Implementations§

§

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> !UnwindSafe 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, 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>,

§

type Error = Infallible

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

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
source§

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

§

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.