pub struct DigitalAudioInterface { /* private fields */ }
Implementations§
Source§impl DigitalAudioInterface
impl DigitalAudioInterface
Sourcepub fn new(path: &Path) -> Self
pub fn new(path: &Path) -> Self
A new interface that will connect to the device at path
.
The interface is unconnected when created.
Sourcepub fn properties(&self) -> impl Future<Output = Result<DaiProperties, Error>>
pub fn properties(&self) -> impl Future<Output = Result<DaiProperties, Error>>
Get the properties of the DAI. Will attempt to connect to the DAI if not connected.
pub fn dai_formats( &self, ) -> impl Future<Output = Result<Vec<DaiSupportedFormats>, Error>>
pub fn ring_buffer_formats( &self, ) -> impl Future<Output = Result<Vec<SupportedFormats>, Error>>
pub fn create_ring_buffer( &self, dai_format: DaiFormat, buffer_format: Format, ring_buffer_client: ServerEnd<RingBufferMarker>, ) -> Result<(), Error>
Trait Implementations§
Auto Trait Implementations§
impl Freeze for DigitalAudioInterface
impl !RefUnwindSafe for DigitalAudioInterface
impl Send for DigitalAudioInterface
impl Sync for DigitalAudioInterface
impl Unpin for DigitalAudioInterface
impl !UnwindSafe for DigitalAudioInterface
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more