class RemiAudio::Resampler::ZohResampler
Overview
A Zero Order Hold converter (interpolated value is equal to the last value). The quality is poor but the conversion speed is blindlingly fast. Be aware that this interpolator is not bandlimited, and the user is responsible for adding anti-aliasing filtering.
Direct Known Subclasses
Defined in:
remiaudio/resampler/zoh.crConstructors
-
.new(channels : Int32)
Creates a new
ZohResampler
that will handle the given number of channels.
Instance Method Summary
-
#dup : ZohResampler
Duplicates this resampler.
-
#reset : Nil
Resets the resampler.
Instance methods inherited from class RemiAudio::Resampler::Resampler
channels : Int32
channels,
process(source : Array(Float32) | Slice(Float32), dest : Array(Float32) | Slice(Float32), ratio : Float64) : Tuple(Int64, Int64, Bool)process(source : Array(Float64) | Slice(Float64), dest : Array(Float64) | Slice(Float64), ratio : Float64) : Tuple(Int64, Int64, Bool) process, ratio=(value : Float64) : Nil ratio=, reset : Nil reset
Constructor Detail
def self.new(channels : Int32)
#
Creates a new ZohResampler
that will handle the given number of
channels.