Struct nannou::audio::requester::Requester[][src]

pub struct Requester<S> { /* fields omitted */ }

A sound::Requester for converting backend audio requests into requests for buffers of a fixed size called from a separate thread.

The Requester works by calling fill_buffer with the requested buffer and sample rate from the audio backend each time the callback is invoked.

Methods

impl<S> Requester<S> where
    S: Sample
[src]

Construct a new sound::Requester.

num_frames must be greater than 0.

Fill the given output buffer with samples requested from the model.

Panic!s if sample_rate is not greater than 0 or if the output buffer's length is not a multiple of the given number of channels.

Auto Trait Implementations

impl<S> Send for Requester<S> where
    S: Send

impl<S> Sync for Requester<S> where
    S: Sync