(2022-10-15, 14:51)HeresJohnny Wrote: [ -> ]So, ideally the OSD would show dynamically
for lossy files => bitrate (MP3, OGG, AAC, AC3, MPC etc.)
lossless files => samplerate (FLAC, WAV, WAVPACK, APE, ALAC etc.)
If that kind of conditional display is too complex to implement to start with, maybe a user switch could be added to show either bitrate or samplerate. This would help users who have mostly lossless or lossy of files in their library.
In the texture file (Textures.xbt) we have a bunch of flags showing the codecs used in audio/video files. We could them use for detection/determinig lossy and lossless files via expression, e.g.
xml:
<expression name="isLossless">String.isEqual(Videoplayer.AudioCodec,flac) | String.IsEqual(VideoPlayerAudioCodec,wav) | String.IsEqual(Videoplayer.AudioCodec,pcm) | ...</expression>
This should be done already by selection of lossless codecs. All other codecs which not met the expression, are lossy
Available texture files are: aac_latm.png,
cdda.png, dts-x.png, mpc.png, truehd.png, aac.png, dca.png, eac3.png, ogg.png, vorbis.png, ac3.png, dolbydigital.png , opus.png,
wavpack.png, aifc.png, dolbypro.png,
flac.png,
pcm_bluray.png,
wav.png, aiff.png, dolbytruehd.png, m4a.png,
pcm.png, wmahd.png, aif.png, dtshd_hra.png, mp1.png,
pcm_s16le.png, wma.png,
alac.png, dtshd_ma.png, mp2.png,
pcm_s24le.png, wmapro.png,
ape.png, dts_hra.png, mp3float.png, ra.png, wmav2.png, atmos.png, dtsma.png, mp3.png,
sacd.png, avi.png, dts.png, mp4.png, theora.png.
The bolded names are lossless in my opinion, but as I'm not as audiophil I need some suggestions...