summaryrefslogtreecommitdiffstats
path: root/src/audio.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/audio.c')
-rw-r--r--src/audio.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/audio.c b/src/audio.c
index da656f2..bc2e04d 100644
--- a/src/audio.c
+++ b/src/audio.c
@@ -4,6 +4,12 @@
#include <xas/audio.h>
+int xas_audio_format_eq(xas_audio_format a, xas_audio_format b) {
+ return a.channels == b.channels
+ && a.sample_size == b.sample_size
+ && a.sample_rate == b.sample_rate;
+}
+
void xas_audio_copy(xas_audio_format format,
void *dest,
void *src,