aboutsummaryrefslogtreecommitdiff
path: root/src/pcm_export.h
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2012-04-23 21:36:50 +0200
committerMax Kellermann <max@duempel.org>2012-04-23 21:54:09 +0200
commitdf1c5ce3145253fa3cd0611cefac11ee6f85a063 (patch)
tree8840796e1d96cc4c67672f10da546ad4bea9df59 /src/pcm_export.h
parenta0e4b6e26683903065102e5f5b4035eddf4a3a60 (diff)
pcm_export: add _frame_size()
Move code from the ALSA output plugin.
Diffstat (limited to 'src/pcm_export.h')
-rw-r--r--src/pcm_export.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/pcm_export.h b/src/pcm_export.h
index 418dcdfa..a7e7c3f6 100644
--- a/src/pcm_export.h
+++ b/src/pcm_export.h
@@ -115,6 +115,14 @@ pcm_export_open(struct pcm_export_state *state,
bool dsd_usb, bool shift8, bool pack, bool reverse_endian);
/**
+ * Calculate the size of one output frame.
+ */
+G_GNUC_PURE
+size_t
+pcm_export_frame_size(const struct pcm_export_state *state,
+ const struct audio_format *audio_format);
+
+/**
* Export a PCM buffer.
*
* @param state an initialized and open pcm_export_state object