decoder/vorbis: scale and clip tremor-decoded samples to 15 bits

Tremor decoder is unusable since commit 2ee43c4. Sound is distorted to
the point where it's nothing but noise.

The data from vorbis_synthesis_pcmout() needs to be scaled and
clipped for 16 bit sample size. For reference see
http://lists.xiph.org/pipermail/tremor/2010-April/001642.html and
http://lists.xiph.org/pipermail/vorbis/2006-October/026513.html.

Signed-off-by: Marcin Jurkowski <marcin1j@gmail.com>
This commit is contained in:
Marcin Jurkowski
2017-10-29 00:59:27 +02:00
committed by Max Kellermann
parent 28e864e096
commit 3b23cf0258
2 changed files with 17 additions and 1 deletions

2
NEWS
View File

@@ -1,6 +1,8 @@
ver 0.20.12 (not yet released)
* input
- curl: fix seeking
* decoder
- vorbis: fix Tremor support
* player
- log message when decoder is too slow