AudioOutputStreamSync

Trait AudioOutputStreamSync 

Source
pub trait AudioOutputStreamSync: AudioOutputStream {
    type FrameType: IsFrameType;

    // Required method
    fn write(
        &mut self,
        _buffer: &[<Self::FrameType as IsFrameType>::Type],
        _timeout_nanoseconds: i64,
    ) -> Result<i32>;
}
Expand description

The stream which can be used for audio output in synchronous mode

Required Associated Types§

Required Methods§

Source

fn write( &mut self, _buffer: &[<Self::FrameType as IsFrameType>::Type], _timeout_nanoseconds: i64, ) -> Result<i32>

Write data from the supplied buffer into the stream. This method will block until the write is complete or it runs out of time.

If timeout_nanoseconds is zero then this call will not wait.

Implementors§