Struct nannou_audio::requester::Requester[][src]

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

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.

Implementations

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

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.