summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorXANTRONIX Development2022-02-27 10:49:27 -0500
committerXANTRONIX Development2022-02-27 10:49:27 -0500
commitff6126d37d950b233a9d275f0fdba1c0de8d2466 (patch)
tree10886685fe606349a21f6ba41c215656ab471251
parent699ddb5f2f4d2a85f23cdae3560898b2b6798812 (diff)
downloadxas-ff6126d37d950b233a9d275f0fdba1c0de8d2466.tar.gz
xas-ff6126d37d950b233a9d275f0fdba1c0de8d2466.tar.bz2
xas-ff6126d37d950b233a9d275f0fdba1c0de8d2466.zip
i'm a little biscuit head :333
-rw-r--r--src/vox.c3
1 files changed, 1 insertions, 2 deletions
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;