class RemiAudio::Resampler::LinearResampler

Overview

A linear converter. The quality is poor, but the conversion speed is blindingly fast. This interpolator is also not bandlimited, and the user is responsible for adding anti-aliasing filtering.

Direct Known Subclasses

Defined in:

remiaudio/resampler/linear.cr

Constructors

Instance Method Summary

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 LinearResampler that will handle the given number of channels.


[View source]

Instance Method Detail

def dup : LinearResampler #

Duplicates this resampler.


[View source]
def reset : Nil #

Resets the resampler.


[View source]