aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_dither.c (unfollow)
Commit message (Collapse)AuthorFilesLines
2009-01-03pcm_utils: use the custom PRNG for volume ditheringMax Kellermann1-5/+1
Don't use libc's rand() function, because it is slow. Our own trivial linear congruential generator is good enough for dithering.
2008-10-23pcm_dither: added generic 24 to 16 bit ditheringMax Kellermann1-0/+82
Copied and adapted code from the mp3 decoder plugin. This library now replaces the old and low-quality function pcm_convert_24_to_16().