pub struct Upsampler<Flt> { /* private fields */ }
Expand description

Increase sample rate

Implementations

Create new Upsampler block

This call corresponds to Upsampler::with_quality with a quality value of 3.0.

Connected Producers must emit Signal::Samples with a sample_rate equal to or smaller than output_rate but larger than bandwidth; otherwise a panic occurs.

Aliasing is suppressed for frequencies lower than bandwidth.

Create new Upsampler block with quality setting

Same as Upsampler::new, but allows to specify a quality setting, which must be equal to or greater than 1.0.

Trait Implementations

Obtain reference to ReceiverConnector
Connect Consumer to Producer
Disconnect Consumer from any connected Producer if connected
Obtain reference to SenderConnector
Connect Producer to Consumer

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

Returns the argument unchanged.

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

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.