aboutsummaryrefslogtreecommitdiffstats
path: root/src/pcm_export.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/pcm_export.h')
-rw-r--r--src/pcm_export.h14
1 files changed, 13 insertions, 1 deletions
diff --git a/src/pcm_export.h b/src/pcm_export.h
index 570092eb9..7dc9f5f03 100644
--- a/src/pcm_export.h
+++ b/src/pcm_export.h
@@ -35,6 +35,13 @@ struct audio_format;
*/
struct pcm_export_state {
/**
+ * The buffer used to pack samples, removing padding.
+ *
+ * @see #reverse_endian
+ */
+ struct pcm_buffer pack_buffer;
+
+ /**
* The buffer used to reverse the byte order.
*
* @see #reverse_endian
@@ -42,6 +49,11 @@ struct pcm_export_state {
struct pcm_buffer reverse_buffer;
/**
+ * Pack 24 bit samples?
+ */
+ bool pack24;
+
+ /**
* Export the samples in reverse byte order? A non-zero value
* means the option is enabled and represents the size of each
* sample (2 or bigger).
@@ -72,7 +84,7 @@ pcm_export_deinit(struct pcm_export_state *state);
void
pcm_export_open(struct pcm_export_state *state,
enum sample_format sample_format,
- bool reverse_endian);
+ bool pack, bool reverse_endian);
/**
* Export a PCM buffer.