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

correct delay

This commit is contained in:
2026-02-15 20:59:33 +01:00
parent b049dad8f2
commit 68afa5ea97
2 changed files with 3 additions and 3 deletions

View File

@@ -7,8 +7,8 @@ void init_stereo_encoder(StereoEncoder* st, uint8_t stereo_ssb, uint8_t multipli
st->pilot_volume = pilot_volume;
st->audio_volume = audio_volume;
if(stereo_ssb) {
init_delay_line(&st->delay_pilot, stereo_ssb*2+1);
init_delay_line(&st->delay, stereo_ssb*2+1);
init_delay_line(&st->delay_pilot, stereo_ssb*2);
init_delay_line(&st->delay, stereo_ssb*2);
st->stereo_hilbert = firhilbf_create(stereo_ssb, 60);
} else st->stereo_hilbert = NULL;
}

View File

@@ -456,7 +456,7 @@ void init_runtime(FM95_Runtime* runtime, const FM95_Config config) {
}
if(config.stereo_ssb) {
for(int i = 0; i < config.rds_streams; i++) init_delay_line(&runtime->rds_delays[i], config.stereo_ssb*2+1);
for(int i = 0; i < config.rds_streams; i++) init_delay_line(&runtime->rds_delays[i], config.stereo_ssb*2);
}
if(config.preemphasis != 0) {