summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;