]> git.lizzy.rs Git - plan9front.git/commit
mp3dec: fix volume for mp3dec
authorcinap_lenrek <cinap_lenrek@gmx.de>
Wed, 6 Nov 2013 21:18:36 +0000 (22:18 +0100)
committercinap_lenrek <cinap_lenrek@gmx.de>
Wed, 6 Nov 2013 21:18:36 +0000 (22:18 +0100)
commita60001871e67311f413affdca45039f1734b206a
treee3d75c256fa43c3bc3e16d5023ebfd826d44abc4
parent7b36a7e1a9056bc8046d161c81aee008854daadf
mp3dec: fix volume for mp3dec

the libmad samples need to be scaled properly. the
previous assumption was that it is 32 bits, but it
really is MAD_F_FRACTBITS + sign bit and rest used
for overflow.

thanks eekee!
sys/src/cmd/audio/mp3dec/main.c