diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/vox.c | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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; |