diff options
| author | steven-na <noreply.github@stvnc.dev> | 2026-08-05 13:05:55 -0700 |
|---|---|---|
| committer | steven-na <noreply.github@stvnc.dev> | 2026-08-05 13:05:55 -0700 |
| commit | 5ae677003dd79f031595b47df99e5b2a7d118ed9 (patch) | |
| tree | 407095475454a1aecf903bc70978a8c7adbdd891 /tests/wav.c | |
| parent | 351af801854e603fb314e10289ad55944ba840d4 (diff) | |
API change and formatting
Diffstat (limited to 'tests/wav.c')
| -rw-r--r-- | tests/wav.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/wav.c b/tests/wav.c index 53a62eb..839b31f 100644 --- a/tests/wav.c +++ b/tests/wav.c @@ -258,7 +258,7 @@ Test(wav, read_rejects_non_pcm_format, .init = non_pcm_setup, .fini = non_pcm_te wav_data_t data = { .samples = &sample, .sample_count = 1 }; wav_fmt_chunk_t fmtchunk = make_wav_fmt_chunk(1, 8000, 8); - fmtchunk.audio_format = 3; // IEEE 754 float, not PCM + fmtchunk.audio_format = 6; // A-law, neither PCM integer (1) nor IEEE float (3) cr_assert(write_wav_file(wav_file, &fmtchunk, data)); @@ -274,7 +274,7 @@ Test(wav, read_rejects_non_pcm_format, .init = non_pcm_setup, .fini = non_pcm_te fclose(readback_file); - cr_expect_eq(read_fmtchunk.audio_format, 3); + cr_expect_eq(read_fmtchunk.audio_format, 6); cr_expect_eq(read_data.samples, NULL); smrt_arena_destroy(arena); |