From be0fec6d1321bfb588dcaca2712f0668c6bf9c71 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Moritz=20Br=C3=BCckner?= Date: Sun, 24 Jul 2022 01:45:21 +0200 Subject: [PATCH] HL: fix reading .wav file chunks --- Backends/Kinc-HL/kinc-bridge/sound.c.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Backends/Kinc-HL/kinc-bridge/sound.c.h b/Backends/Kinc-HL/kinc-bridge/sound.c.h index b1c458faa..85c754330 100644 --- a/Backends/Kinc-HL/kinc-bridge/sound.c.h +++ b/Backends/Kinc-HL/kinc-bridge/sound.c.h @@ -35,7 +35,7 @@ static void readChunk(uint8_t **data, struct WaveData *wave) { char fourcc[5]; readFOURCC(data, fourcc); uint32_t chunksize = kinc_read_u32le(*data); - data += 4; + *data += 4; if (strcmp(fourcc, "fmt ") == 0) { wave->audioFormat = kinc_read_u16le(*data + 0); wave->numChannels = kinc_read_u16le(*data + 2);