module RemiAudio::Resampler::CallbackResampler
Overview
The CallbackResampler
mixin is used in Resampler
subclasses that call a
callback function to read source audio data as-needed.
Direct including types
- RemiAudio::Resampler::LinearResamplerCb
- RemiAudio::Resampler::SincResamplerStereoCb
- RemiAudio::Resampler::ZohResamplerCb
Defined in:
remiaudio/resampler/resampler.crInstance Method Summary
-
#callbackFunc : CallbackProc
The method called when new input data is needed.
-
#read(ratio : Float64, data : Array(Float32) | Slice(Float32)) : Int64
Reads audio data into data at the given ratio, returning the actual number of samples that were read into data.
-
#read(ratio : Float64, data : Array(Float64) | Slice(Float64)) : Int64
Reads audio data into data at the given ratio, returning the actual number of samples that were read into data.
- #tempFloat32Buf(size : Int) : Slice(Float32)
Instance Method Detail
Reads audio data into data at the given ratio, returning the actual number of samples that were read into data.
Note that the returned value is samples per channel.
Reads audio data into data at the given ratio, returning the actual number of samples that were read into data.
Note that the returned value is samples per channel.