0
1
mirror of https://github.com/radio95-rnt/fm95.git synced 2026-02-26 19:23:51 +01:00

will thjis commit break everything?

This commit is contained in:
2025-07-10 19:32:21 +02:00
parent db60762057
commit 7956b7d989
4 changed files with 12 additions and 21 deletions

View File

@@ -23,15 +23,11 @@ float get_oscillator_cos_sample(Oscillator *osc) {
}
float get_oscillator_sin_multiplier_ni(Oscillator *osc, float multiplier) {
float new_phase = osc->phase * multiplier;
new_phase -= (new_phase >= M_2PI) ? M_2PI : 0.0f;
return sinf(new_phase);
return sinf(osc->phase * multiplier);
}
float get_oscillator_cos_multiplier_ni(Oscillator *osc, float multiplier) {
float new_phase = osc->phase * multiplier;
new_phase -= (new_phase >= M_2PI) ? M_2PI : 0.0f;
return cosf(new_phase);
return cosf(osc->phase * multiplier);
}
inline void advance_oscillator(Oscillator *osc) {