[][src]Trait oboe::AudioInputStreamSync

pub trait AudioInputStreamSync: AudioInputStream {
    type FrameType: IsFrameType;
    fn read(
        &mut self,
        _buffer: &mut [<Self::FrameType as IsFrameType>::Type],
        _timeout_nanoseconds: i64
    ) -> Result<i32>; }

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

Associated Types

Loading content...

Required methods

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.

Loading content...

Implementors

impl<F: IsFrameType> AudioInputStreamSync for AudioStreamSync<Input, F>[src]

type FrameType = F

Loading content...