pub trait DataFormat: Sealed {
    type AudioFrame: Default;

    const VALUE: DataFormat;
}
Expand description

Trait for marker indicating a DataFormat

Required Associated Types§

source

type AudioFrame: Default

Audio frame representation from API point of view;

Required Associated Constants§

source

const VALUE: DataFormat

Internal use only (used by configuration types).

Object Safety§

This trait is not object safe.

Implementors§

source§

impl DataFormat for Data16Channel16

source§

const VALUE: DataFormat = crate::driver::DataFormat::Data16Channel16

§

type AudioFrame = (i16, i16)

source§

impl DataFormat for Data16Channel32

source§

const VALUE: DataFormat = crate::driver::DataFormat::Data16Channel32

§

type AudioFrame = (i16, i16)

source§

impl DataFormat for Data24Channel32

source§

const VALUE: DataFormat = crate::driver::DataFormat::Data24Channel32

§

type AudioFrame = (i32, i32)

source§

impl DataFormat for Data32Channel32

source§

const VALUE: DataFormat = crate::driver::DataFormat::Data32Channel32

§

type AudioFrame = (i32, i32)