From 3e7dd30fd7977282a1639864080ef60dd9f15d30 Mon Sep 17 00:00:00 2001 From: Alibek Omarov Date: Sun, 7 Mar 2021 02:48:56 +0300 Subject: [PATCH] engine: soundlib: use stdint definitions for WAV headers --- engine/common/soundlib/soundlib.h | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/engine/common/soundlib/soundlib.h b/engine/common/soundlib/soundlib.h index bcdcbf60..9ce2af46 100644 --- a/engine/common/soundlib/soundlib.h +++ b/engine/common/soundlib/soundlib.h @@ -94,23 +94,23 @@ struct stream_s typedef struct { - int riff_id; // 'RIFF' - int rLen; - int wave_id; // 'WAVE' - int fmt_id; // 'fmt ' - int pcm_header_len; // varies... - short wFormatTag; - short nChannels; // 1,2 for stereo data is (l,r) pairs - int nSamplesPerSec; - int nAvgBytesPerSec; - short nBlockAlign; - short nBitsPerSample; + int32_t riff_id; // 'RIFF' + int32_t rLen; + int32_t wave_id; // 'WAVE' + int32_t fmt_id; // 'fmt ' + int32_t pcm_header_len; // varies... + int16_t wFormatTag; + int16_t nChannels; // 1,2 for stereo data is (l,r) pairs + int32_t nSamplesPerSec; + int32_t nAvgBytesPerSec; + int16_t nBlockAlign; + int16_t nBitsPerSample; } wavehdr_t; typedef struct { - int data_id; // 'data' or 'fact' - int dLen; + int32_t data_id; // 'data' or 'fact' + int32_t dLen; } chunkhdr_t; extern sndlib_t sound;