pub trait AudioInputStreamSync: AudioInputStream {
    type FrameType: IsFrameType;

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

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

Required Associated Types§

Required Methods§

source

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

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

If timeout_nanoseconds is zero then this call will not wait.

Implementors§