aboutsummaryrefslogtreecommitdiff
path: root/src/pcm_export.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-03-27 01:01:16 +0200
committerMax Kellermann <max@duempel.org>2012-03-27 01:22:50 +0200
commitddd4f675a2d42b0c8156e03bf3e93f39df2fe609 (patch)
tree248c44242b11e721eeb03fcb74c601fd12fdec39 /src/pcm_export.h
parentd271dd2cce79d1473f43f7ad7e6815b74617dfe3 (diff)
pcm_export: implement 24 to 32 bit conversion
For 32 bit DSD-over-USB support.
Diffstat (limited to 'src/pcm_export.h')
-rw-r--r--src/pcm_export.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/pcm_export.h b/src/pcm_export.h
index c132c716..418dcdfa 100644
--- a/src/pcm_export.h
+++ b/src/pcm_export.h
@@ -69,6 +69,12 @@ struct pcm_export_state {
bool dsd_usb;
/**
+ * Convert (padded) 24 bit samples to 32 bit by shifting 8
+ * bits to the left?
+ */
+ bool shift8;
+
+ /**
* Pack 24 bit samples?
*/
bool pack24;
@@ -106,7 +112,7 @@ pcm_export_deinit(struct pcm_export_state *state);
void
pcm_export_open(struct pcm_export_state *state,
enum sample_format sample_format, unsigned channels,
- bool dsd_usb, bool pack, bool reverse_endian);
+ bool dsd_usb, bool shift8, bool pack, bool reverse_endian);
/**
* Export a PCM buffer.