class RemiAudio::Resampler::SincResamplerStereoCb
- RemiAudio::Resampler::SincResamplerStereoCb
- RemiAudio::Resampler::SincResamplerStereo
- RemiAudio::Resampler::SincResampler
- RemiAudio::Resampler::Resampler
- Reference
- Object
Overview
A callback version of the SincResamplerStereo
class.
Included Modules
Defined in:
remiaudio/resampler/sinc.crConstructors
-
.new(quality : Quality, ratio : Float64, callbackFunc : CallbackProc)
Creates a new
SincResamplerStereoCb
that will operate at the givenQuality
.
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
Constructor methods inherited from class RemiAudio::Resampler::SincResamplerStereo
new(quality : Quality)
new
Instance methods inherited from class RemiAudio::Resampler::SincResampler
quality : Quality
quality,
reset : Nil
reset
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 SincResamplerStereoCb
that will operate at the given
Quality
. 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
.