aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/Volume.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-22 17:39:26 +0100
committerMax Kellermann <max@duempel.org>2013-12-28 18:30:24 +0100
commitafcf0795c44260f54e74ec854297de439e7562c3 (patch)
treef4ec95c5d889d81ec840f83f105a03625f663cb6 /src/pcm/Volume.hxx
parent394e2815dbaf0edb8d0f34b6ceab96b58f071ea8 (diff)
downloadmpd-afcf0795c44260f54e74ec854297de439e7562c3.tar.gz
mpd-afcf0795c44260f54e74ec854297de439e7562c3.tar.xz
mpd-afcf0795c44260f54e74ec854297de439e7562c3.zip
pcm/Volume: improved dithering
Instead of just adding a rectangular random value before shifting back to the normal scale, use the existing PcmDither library.
Diffstat (limited to '')
-rw-r--r--src/pcm/Volume.hxx2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pcm/Volume.hxx b/src/pcm/Volume.hxx
index c31aafb6e..50742225f 100644
--- a/src/pcm/Volume.hxx
+++ b/src/pcm/Volume.hxx
@@ -23,6 +23,7 @@
#include "PcmPrng.hxx"
#include "AudioFormat.hxx"
#include "PcmBuffer.hxx"
+#include "PcmDither.hxx"
#include <stdint.h>
#include <stddef.h>
@@ -87,6 +88,7 @@ class PcmVolume {
unsigned volume;
PcmBuffer buffer;
+ PcmDither dither;
public:
PcmVolume()