pub trait AudioSinkImpl: AudioSinkImplExt + BaseSinkImpl {
fn close(&self, sink: &Self::Type) -> Result<(), LoggableError> { ... }
fn delay(&self, sink: &Self::Type) -> u32 { ... }
fn open(&self, sink: &Self::Type) -> Result<(), LoggableError> { ... }
fn prepare(
&self,
sink: &Self::Type,
spec: &mut AudioRingBufferSpec
) -> Result<(), LoggableError> { ... }
fn unprepare(&self, sink: &Self::Type) -> Result<(), LoggableError> { ... }
fn write(
&self,
sink: &Self::Type,
audio_data: &[u8]
) -> Result<i32, LoggableError> { ... }
fn reset(&self, sink: &Self::Type) { ... }
}