HydrogenAudio

Hosted Forums => foobar2000 => Support - (fb2k) => Topic started by: MJmusicguy on 2018-10-13 14:40:21

Title: %bitspersample_extra% placement
Post by: MJmusicguy on 2018-10-13 14:40:21
Hi there
 if i wanted to  include
Code: [Select]
%bitspersample_extra%[code]
  in my current status bar layout where would it go here id my current layout

Code: [Select]
info(bitspersample)-bit %codec% | %bitrate% kbps | %samplerate% Hz | %channels% | %playback_time%[ / %length%] $if($info(hdcd),'(HDCD:’,) $if(%__hdcd%,PE: %__hdcd_peak_extend% LLE: %__hdcd_gain% TF: %__hdcd_transient_filter%’)’)

Title: Re: %bitspersample_extra% placement
Post by: Case on 2018-10-13 15:20:10
I would add it right after "info(bitspersample)-bit". I'd also suggest adding square brackets in appropriate places so you don't see question marks with formats that don't report specific tech info. Something like:
Code: [Select]
[$info(bitspersample)-bit[ $info(bitspersample_extra)] ][%codec% | ][%bitrate% kbps | ][%samplerate% Hz | ][%channels% | ]%playback_time%[ / %length%] $if($info(hdcd),'(HDCD:’,) $if(%__hdcd%,PE: %__hdcd_peak_extend% LLE: %__hdcd_gain% TF: %__hdcd_transient_filter%’)’)
Title: Re: %bitspersample_extra% placement
Post by: MJmusicguy on 2018-10-13 15:53:58
 @Case  Ok great thank you also how should it display i have some PCM files its not really showing any extra info
Title: Re: %bitspersample_extra% placement
Post by: Porcus on 2018-10-13 16:40:00
Should it display anything if it is not 32-bit integer?  (Asking since I don't have any of those.)
Title: Re: %bitspersample_extra% placement
Post by: Case on 2018-10-13 16:56:54
It only shows something when the data format is ambiguous. Try with these sample files:
Title: Re: %bitspersample_extra% placement
Post by: Porcus on 2018-10-13 22:14:12
It only shows something when the data format is ambiguous.

Oh. Whatever that means. I have just a handful of 32-bit WavPack files converted from .wav - they do not show fixed/floating information.

It only shows something when the data format is ambiguous. Try with these sample files:
Confirmed working here.  Also after converting with back and forth both with fb2k and with wavpack.exe.
Q: does foo_bitcompare give the occasional false "OK" for 32-bit files, like what you (if I understand correctly ...) described here (https://hydrogenaud.io/index.php/topic,110315.msg909347.html#msg909347)?
Title: Re: %bitspersample_extra% placement
Post by: Case on 2018-10-14 08:32:08
I have just a handful of 32-bit WavPack files converted from .wav - they do not show fixed/floating information.
Sounds like you need to reload information from the tracks. The info has always been present in WavPack, I created these test files when this topic (https://hydrogenaud.io/index.php/topic,116303.0.html) popped up.

Q: does foo_bitcompare give the occasional false "OK" for 32-bit files, like what you (if I understand correctly ...) described here (https://hydrogenaud.io/index.php/topic,110315.msg909347.html#msg909347)?
Yes. Bitcompare only sees 32-bit floating point from the decoders so 64-bit floating point and fixed point formats with over 25 used bits will suffer from rounding. Now that decoders have a method to report for example that 32-bit file isn't in float the component could be changed to warn about the situation.
Title: Re: %bitspersample_extra% placement
Post by: Porcus on 2018-10-14 09:26:12
Sounds like you need to reload information from the tracks.
*facepalm ... * sorry.


Q: does foo_bitcompare give the occasional false "OK" for 32-bit files, like what you (if I understand correctly ...) described here (https://hydrogenaud.io/index.php/topic,110315.msg909347.html#msg909347)?
Yes. Bitcompare only sees 32-bit floating point from the decoders so 64-bit floating point and fixed point formats with over 25 used bits will suffer from rounding. Now that decoders have a method to report for example that 32-bit file isn't in float the component could be changed to warn about the situation.

If one cares about whether "lossless is lossless" is a true statement, then that is a good idea.