it doesnt work

This commit is contained in:
2026-07-11 13:01:02 +02:00
parent fdab99d1fa
commit 75201d9063
+4 -2
View File
@@ -269,6 +269,7 @@ int run_fm95(FM95_Config* config, FM95_Runtime* runtime, FM95_RunResult* result)
{ {
if (cycle) { if (cycle) {
printf("rds cycle\n");
uint8_t bit; uint8_t bit;
if (bit_ring_read1(&runtime->rds_bitring[0], &bit)) { if (bit_ring_read1(&runtime->rds_bitring[0], &bit)) {
runtime->rds_last_bit[0] = bit; runtime->rds_last_bit[0] = bit;
@@ -276,9 +277,9 @@ int run_fm95(FM95_Config* config, FM95_Runtime* runtime, FM95_RunResult* result)
runtime->rds_symbol[0] = runtime->rds_last_bit[0] ? 1.0f : -1.0f; runtime->rds_symbol[0] = runtime->rds_last_bit[0] ? 1.0f : -1.0f;
} }
float clock = get_oscillator_cos_multiplier_ni(&runtime->osc, 1.0f); // float clock = get_oscillator_cos_multiplier_ni(&runtime->osc, 1.0f);
float carrier = get_oscillator_cos_multiplier_ni(&runtime->osc, 52.0f); float carrier = get_oscillator_cos_multiplier_ni(&runtime->osc, 52.0f);
mpx += runtime->rds_symbol[0] * clock * carrier * config->volumes.rds; mpx += runtime->rds_symbol[0] * carrier * config->volumes.rds;
} }
mpx = bs412_compress(&runtime->bs412, audio, mpx+mpx_in[i], &temp_result.mpx_power); mpx = bs412_compress(&runtime->bs412, audio, mpx+mpx_in[i], &temp_result.mpx_power);
@@ -611,6 +612,7 @@ static void *handle_client(ipc_client_arg_t *arg) {
} }
bit_ring_write(&data->runtime->rds_bitring[0], unpacked, nbits); bit_ring_write(&data->runtime->rds_bitring[0], unpacked, nbits);
reply = 0xff; reply = 0xff;
printf("rds data\n");
break; break;
} }
case 0xfe: case 0xfe: