Stereo and Mono are swapped
Knorxi opened this issue · 5 comments
When I'm listening to a stereo station, the RDS Panel shows "Mono"
Line 125 in 113b70b
When I swap the '1' and '0' it works. But then the code doesn't look so good anymore ;-)
May be the variable should be renamed to stereo_mono ...
Also of note: The abstract of IEC 62106-2:2018 states that:
Obsolete and no longer part of the RDS standard are: MS (Group 0A, 0B and 15B) certain DI codes (mono/stereo, artificial head, compression), Language code, and PIN (Group 1A).
So it seems that the field no longer exists in recent versions of the RDS standard.
I did a quick survey of my local stations. Most are broadcasting in stereo, but only one sets the "stereo" bit in RDS. Perhaps this is part of the reason why the field was removed in IEC 62106-2:2018.
Thanks for the response and the cool RDS code.
I can learn a lot from that.
I was going to say "I'm glad the standard has been withdrawn so that the stereo bit is preserved ;-)", but, I have also tested a few radio stations and in Germany some of them do not broadcast the stereo bit also.
Concerning the mono / stereo problem in parser_impl.cc:
You are right.
I have always a problem in variable names with the 2 states in the name.
In never know which state is "1".
E.g. there are the variables "music_speech" and "mono_stereo" in the code.
In the IEC for "Music" the bit is set and for "Speech" the bit is not set.
For "Stereo" another bit is set and the same bit is not set for "Mono".
So in the variable name "music _speech" is the state where the bit is set the first word.
But in "mono _stereo" is the state where the bit is set the second word.