class RemiAudio::Resampler::LinearResamplerCb
- RemiAudio::Resampler::LinearResamplerCb
- RemiAudio::Resampler::LinearResampler
- RemiAudio::Resampler::Resampler
- Reference
- Object
Overview
A callback version of the LinearResampler
class.
Included Modules
Defined in:
remiaudio/resampler/linear.crConstructors
-
.new(channels : Int32, ratio : Float64, callbackFunc : CallbackProc)
Creates a new
LinearResamplerCb
that will handle the given number of channels.
Instance Method Summary
-
#process(source : Array(Float32) | Slice(Float32), dest : Array(Float32) | Slice(Float32), ratio : Float64) : Tuple(Int64, Int64, Bool)
This is not supported by this class since
LinearResamplerCb
uses theCallbackResampler
mixin. -
#process(source : Array(Float64) | Slice(Float64), dest : Array(Float64) | Slice(Float64), ratio : Float64) : Tuple(Int64, Int64, Bool)
This is not supported by this class since
LinearResamplerCb
uses theCallbackResampler
mixin. -
#reset : Nil
:inherit:
Instance methods inherited from module RemiAudio::Resampler::CallbackResampler
callbackFunc : CallbackProc
callbackFunc,
read(ratio : Float64, data : Array(Float32) | Slice(Float32)) : Int64read(ratio : Float64, data : Array(Float64) | Slice(Float64)) : Int64 read, tempFloat32Buf(size : Int) : Slice(Float32) tempFloat32Buf
Instance methods inherited from class RemiAudio::Resampler::LinearResampler
dup : LinearResampler
dup,
reset : Nil
reset
Constructor methods inherited from class RemiAudio::Resampler::LinearResampler
new(channels : Int32)
new
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
Creates a new LinearResamplerCb
that will handle the given number of
channels. The ratio parameter sets the initial ratio of the resampler
(targetRate / sourceRate
), while callbackFunc is the method that will
be called whenever this resampler needs more input data.
Instance Method Detail
This is not supported by this class since LinearResamplerCb
uses the
CallbackResampler
mixin. Calling this always raises a
NotImplementedError
.
This is not supported by this class since LinearResamplerCb
uses the
CallbackResampler
mixin. Calling this always raises a
NotImplementedError
.