try to do rds2, again

This commit is contained in:
2025-03-22 20:29:06 +01:00
parent 8ace0112a7
commit e581cf20c2
6 changed files with 81 additions and 28 deletions
+4 -3
View File
@@ -546,8 +546,9 @@ static uint8_t get_rds_custom_groups(RDSEncoder* enc, uint16_t *blocks) {
return 0;
}
static void get_rds_group(RDSEncoder* enc, uint16_t *blocks) {
static void get_rds_group(RDSEncoder* enc, uint16_t *blocks, uint8_t stream) {
blocks[0] = enc->data[enc->program].pi;
if(stream != 0) blocks[0] = 0;
blocks[1] = 0;
blocks[2] = 0;
blocks[3] = 0;
@@ -726,9 +727,9 @@ group_coded:
}
}
void get_rds_bits(RDSEncoder* enc, uint8_t *bits) {
void get_rds_bits(RDSEncoder* enc, uint8_t *bits, uint8_t stream) {
static uint16_t out_blocks[GROUP_LENGTH];
get_rds_group(enc, out_blocks);
get_rds_group(enc, out_blocks, stream);
add_checkwords(out_blocks, bits);
}