rds input via ipc - experimental (hence it is on 61.75 - the only unused frequncy

This commit is contained in:
2026-07-11 12:45:50 +02:00
parent da40c0ea02
commit fdab99d1fa
5 changed files with 92 additions and 18 deletions
+5 -2
View File
@@ -30,7 +30,10 @@ float get_oscillator_cos_multiplier_ni(Oscillator *osc, float multiplier) {
return cosf(osc->phase * multiplier);
}
inline void advance_oscillator(Oscillator *osc) {
inline bool advance_oscillator(Oscillator *osc) {
osc->phase += osc->phase_increment;
if (osc->phase >= M_2PI) osc->phase -= M_2PI;
if (osc->phase >= M_2PI) {
osc->phase -= M_2PI;
return true;
} return false;
}