mirror of
https://github.com/portapack-mayhem/mayhem-firmware.git
synced 2025-01-13 06:13:38 +00:00
Change LinearResampler.advance to external use only.
This commit is contained in:
parent
4ed385d15e
commit
64ed539554
@ -52,13 +52,13 @@ public:
|
|||||||
while( phase < 1.0f ) {
|
while( phase < 1.0f ) {
|
||||||
const float interpolated_value = last_sample + phase * sample_delta;
|
const float interpolated_value = last_sample + phase * sample_delta;
|
||||||
interpolated_sample_handler(interpolated_value);
|
interpolated_sample_handler(interpolated_value);
|
||||||
advance();
|
phase += phase_increment;
|
||||||
}
|
}
|
||||||
last_sample = sample;
|
last_sample = sample;
|
||||||
phase -= 1.0f;
|
phase -= 1.0f;
|
||||||
}
|
}
|
||||||
|
|
||||||
void advance(const float fraction = 1.0f) {
|
void advance(const float fraction) {
|
||||||
phase += (fraction * phase_increment);
|
phase += (fraction * phase_increment);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user