Skip to main content

Notice

Please note that most of the software linked on this forum is likely to be safe to use. If you are unsure, feel free to ask in the relevant topics, or send a private message to an administrator or moderator. To help curb the problems of false positives, or in the event that you do find actual malware, you can contribute through the article linked here.
Topic: Display bit depth (Read 12341 times) previous topic - next topic
0 Members and 1 Guest are viewing this topic.

Display bit depth

How do I get Foobar to display bit depth (i.e. 16, 24, 32). You can display sample rate with %samplerate% and bit rate with %bitrate%. %bitdepth% doesn't seem to work. Any ideas?

Display bit depth

Reply #1
$info(bitspersample)
It's only audiophile if it's inconvenient.

Display bit depth

Reply #2
Thanks Kohlrabi, but that's not bringing up any info in the window playback display.

Currently I have: %track artist% - %title% - '('%album%',' track %tracknumber%')'  -  %codec%',' %bitrate%kbps',' %samplerate%

All this info then appears at the top of the screen in the foobar window bar, when a track is playing.

Adding $info(bitspersample) at the end does not seem to change the display at all.

Display bit depth

Reply #3

Quote from: danhackley link=msg=0 date=
Adding $info(bitspersample) at the end does not seem to change the display at all.

It will not return any info for most lossy files, like mp3, which do not really have a bit depth*. It should display as expected with a lossless codec.

BTW, you can also use code like [%__bitspersample% bit] or [%__bitspersample% bps]


*
Quote
Technically speaking, bit depth is only meaningful when applied to pure PCM devices. Non-PCM formats such as lossy compression systems like MP3, have bit depths that are not defined in the same sense as PCM. In lossy audio compression, where bits are allocated to other types of information, and the bits actually allocated to individual samples are allowed to fluctuate within the constraints imposed by the allocation algorithm.