aboutsummaryrefslogtreecommitdiff
path: root/src/PcmFormat.hxx
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2013-01-31 22:43:28 +0100
committerMax Kellermann <max@duempel.org>2013-01-31 22:54:10 +0100
commitf2491c88c86707cc35c7dfc30a1b5a0a29886540 (patch)
treed7b2079f3122aa486b8717c916b596c421944f82 /src/PcmFormat.hxx
parent1b175025fecb1c10e6719d4ab79c188d473fccc4 (diff)
PcmDither: convert struct to a class
Diffstat (limited to 'src/PcmFormat.hxx')
-rw-r--r--src/PcmFormat.hxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/PcmFormat.hxx b/src/PcmFormat.hxx
index d739f60d..a5970b2d 100644
--- a/src/PcmFormat.hxx
+++ b/src/PcmFormat.hxx
@@ -26,7 +26,7 @@
#include <stddef.h>
struct pcm_buffer;
-struct pcm_dither;
+class PcmDither;
/**
* Converts PCM samples to 16 bit. If the source format is 24 bit,
@@ -41,7 +41,7 @@ struct pcm_dither;
* @return the destination buffer
*/
const int16_t *
-pcm_convert_to_16(struct pcm_buffer *buffer, struct pcm_dither *dither,
+pcm_convert_to_16(struct pcm_buffer *buffer, PcmDither &dither,
enum sample_format src_format, const void *src,
size_t src_size, size_t *dest_size_r);