From ddd4f675a2d42b0c8156e03bf3e93f39df2fe609 Mon Sep 17 00:00:00 2001
From: Max Kellermann <max@duempel.org>
Date: Tue, 27 Mar 2012 01:01:16 +0200
Subject: pcm_export: implement 24 to 32 bit conversion

For 32 bit DSD-over-USB support.
---
 src/pcm_export.h | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

(limited to 'src/pcm_export.h')

diff --git a/src/pcm_export.h b/src/pcm_export.h
index c132c7169..418dcdfa3 100644
--- a/src/pcm_export.h
+++ b/src/pcm_export.h
@@ -68,6 +68,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?
 	 */
@@ -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.
-- 
cgit v1.2.3