From ff6126d37d950b233a9d275f0fdba1c0de8d2466 Mon Sep 17 00:00:00 2001 From: XANTRONIX Development Date: Sun, 27 Feb 2022 10:49:27 -0500 Subject: i'm a little biscuit head :333 --- src/vox.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'src') diff --git a/src/vox.c b/src/vox.c index e49510e..6f71e5f 100644 --- a/src/vox.c +++ b/src/vox.c @@ -420,8 +420,7 @@ int xas_vox_generate(xas_vox *vox) { goto error_riff_open_fd; } - if (output->format.sample_size != vox->format.sample_size - || output->format.sample_rate != vox->format.sample_rate) { + if (!xas_audio_format_eq(output->format, vox->format)) { errno = EINVAL; goto error_invalid_stream; -- cgit v1.2.3