From df1c5ce3145253fa3cd0611cefac11ee6f85a063 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Mon, 23 Apr 2012 21:36:50 +0200 Subject: pcm_export: add _frame_size() Move code from the ALSA output plugin. --- src/pcm_export.h | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'src/pcm_export.h') 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 @@ -114,6 +114,14 @@ pcm_export_open(struct pcm_export_state *state, enum sample_format sample_format, unsigned channels, 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. * -- cgit v1.2.3