aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm/Volume.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-12-28 18:08:18 +0100
committerMax Kellermann <max@duempel.org>2013-12-28 18:39:26 +0100
commit92aa464edb9ffc2ded416541ff576abd0b0925b8 (patch)
tree42207a4b60158525b141fb48457bce9509b46836 /src/pcm/Volume.hxx
parentda29298d4dbe8dddade7cf241dd1af267470f2a8 (diff)
downloadmpd-92aa464edb9ffc2ded416541ff576abd0b0925b8.tar.gz
mpd-92aa464edb9ffc2ded416541ff576abd0b0925b8.tar.xz
mpd-92aa464edb9ffc2ded416541ff576abd0b0925b8.zip
pcm/Volume: remove unused function pcm_volume_dither()
Diffstat (limited to 'src/pcm/Volume.hxx')
-rw-r--r--src/pcm/Volume.hxx16
1 files changed, 0 insertions, 16 deletions
diff --git a/src/pcm/Volume.hxx b/src/pcm/Volume.hxx
index 50742225f..6a6f6196d 100644
--- a/src/pcm/Volume.hxx
+++ b/src/pcm/Volume.hxx
@@ -20,7 +20,6 @@
#ifndef MPD_PCM_VOLUME_HXX
#define MPD_PCM_VOLUME_HXX
-#include "PcmPrng.hxx"
#include "AudioFormat.hxx"
#include "PcmBuffer.hxx"
#include "PcmDither.hxx"
@@ -65,21 +64,6 @@ pcm_volume_to_float(int volume)
}
/**
- * Returns the next volume dithering number, between -511 and +511.
- * This number is taken from a global PRNG, see pcm_prng().
- */
-static inline int
-pcm_volume_dither(void)
-{
- static unsigned long state;
- uint32_t r;
-
- r = state = pcm_prng(state);
-
- return (r & 511) - ((r >> 9) & 511);
-}
-
-/**
* A class that converts samples from one format to another.
*/
class PcmVolume {