From my reading of open_read(), ft->signal.precision is more
correct than reading ft->encoding.bits_per_sample directly.
ft->encoding.bits_per_sample is zero on all the Ogg-Vorbis
files I tried.
This makes the output of "soxi -b" match the value given in
the "Precision" line of "soxi" (no switches) output for
Ogg-Vorbis files.
[PATCH] soxi -b displays correct bitrate for Ogg-Vorbis
Also pullable from my git repo:
The following changes since commit 542cab5f35508e4bd8dd52db069a562f5f86d33a:
Merge branch 'dot' into master (2012-10-16 03:37:18 +0200)
are available in the git repository at:
git://bogomips.org/sox soxi-vorbis
for you to fetch changes up to 441989e839bc76dcba89b09403295868087d935f:
soxi -b displays correct bitrate for Ogg-Vorbis (2012-12-02 21:42:33 +0000)
Please drop this patch. f4562efd0aa3d490f13bf8599cacee963e6a8899 (soxi -p) is better.
Thanks.