91
General - (fb2k) / Re: Title formatting/syntax for proper bitdepth
Last post by Case -By the way - if 17th bit comes from halving how should I understand such cases when I see PE=yes but the file reports itself as 17bit (not 24) with TPS?Sounds like the track uses Peak Extension codes in the wrong places, or the track is too quiet generally for PE to do anything. You can run the track through HDCD scanner and it will report how many frames were altered by PE. I suspect there weren't actually any extended peaks.
I'd like to change decoded_bitspersample to report the actual real decoded bitdepth, like return 16 bits or 17 bits for fake titles depending on settings. But there is a problem, LLE effect will instantly trigger 24-bit accuracy and it's unknown from the first seconds if the code was missing if it will be used later. People may not like decoded_bitspersample changing mid-track.
I hope I don't confuse you furher, but the bit depth reported by TPS is based solely on the lowest bit used by the signal. It could for example report 32 bits for a very quiet signal that could be represented with just two bits if it was amplified. Would there be interest to see the used bit count that computes the unused upper bits?
PS. I have the same logic (or "unlogicness") when it comes to the "decoded_*" formulas. Those work really well with sacd_input - ex. they provide info that DSD has been decoded to DSD or has been decoded to PCM as both "decoded_samplerate" and "decoded_bitspersample" are not constant and show either 2,8/1 or PCMrate/64 depending on the output option used. We also have "decoded_channels" and "decoded_channel_mask" which always show proper values for DSD. When playing HDCD only "decoded_bitspersample" shows 24 bits and the rest of the fields stay empty which..looks strange/not informative/not pretty. I know that the empty field means that ex. "decoded_samplerate"="samplerate" but what is wrong in explicitly showing it?The fields are non-standard, they are against foobar2000 logic, a decoder should not report permanent tech info fields (visible in properties dialog) that change depending on user preferences. Tech info fields are supposed to report file specs. I know I kind of abuse this with foo_outinfo, but I don't want to push nonsense any further. Peter has already dropped features from titleformat code because developers abused the system, I don't want such things to happen ever again and most certainly not because I do something stupid.