rockbox/lib/rbcodec
Michael Giacomelli 87d3dde15a Fix corrupt when repeatidly playing very low bitrate WMA files.
The LSP feature in WMA requires that the noise table values be
doubled verses when it is not used.  Unfortunately, the previous
code would double the same values every time a LSP file was
decoded without first resetting them to their original values.
Change the code to check if the values are already doubled, and
then double/halve them as needed.  This is still a bit ugly,
in the future consider using the built in rockbox dither instead
of a lookup table.

Fixes playback when skipping back and forth between low and high
bitrate WMA.

Change-Id: I4c393092e4a789bc8f98d74274fe207400b9550e
Reviewed-on: http://gerrit.rockbox.org/226
Reviewed-by: Michael Giacomelli <giac2000@hotmail.com>
Tested-by: Michael Giacomelli <giac2000@hotmail.com>
2012-05-01 05:42:38 +02:00
..
codecs Fix corrupt when repeatidly playing very low bitrate WMA files. 2012-05-01 05:42:38 +02:00
dsp Should've had dsp_replaygain_set_gains as static for now... 2012-04-30 17:51:05 -04:00
metadata rbcodec refactoring: get_audio_base_data_type 2012-04-28 09:07:40 +02:00
test Warble must have a call to dsp_init before setting options or using it. 2012-04-30 01:55:32 -04:00
rbcodec.make Add codecs to librbcodec. 2012-04-25 22:13:20 +02:00
SOURCES Fundamentally rewrite much of the audio DSP. 2012-04-29 10:00:56 +02:00