From cc27bca6d8d70bf23b17c92aa1e2b28644b51844 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Thu, 17 Mar 2022 11:35:24 -0400 Subject: Implement xas_audio_format_mono() Implement xas_audio_format_mono() to return a new audio format descriptor for a given input, but in mono, as a convenience --- include/xas/audio.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/xas/audio.h b/include/xas/audio.h index 343986d..76d38ce 100644 --- a/include/xas/audio.h +++ b/include/xas/audio.h @@ -53,6 +53,8 @@ struct _xas_audio_stream { int xas_audio_format_eq(xas_audio_format a, xas_audio_format b); +xas_audio_format xas_audio_format_mono(xas_audio_format format); + void xas_audio_zero(xas_audio_format format, void *dest, size_t index, -- cgit v1.2.3