Browse Source

engine: soundlib: use stdint definitions for WAV headers

pull/2/head
Alibek Omarov 4 years ago
parent
commit
3e7dd30fd7
  1. 26
      engine/common/soundlib/soundlib.h

26
engine/common/soundlib/soundlib.h

@ -94,23 +94,23 @@ struct stream_s
typedef struct typedef struct
{ {
int riff_id; // 'RIFF' int32_t riff_id; // 'RIFF'
int rLen; int32_t rLen;
int wave_id; // 'WAVE' int32_t wave_id; // 'WAVE'
int fmt_id; // 'fmt ' int32_t fmt_id; // 'fmt '
int pcm_header_len; // varies... int32_t pcm_header_len; // varies...
short wFormatTag; int16_t wFormatTag;
short nChannels; // 1,2 for stereo data is (l,r) pairs int16_t nChannels; // 1,2 for stereo data is (l,r) pairs
int nSamplesPerSec; int32_t nSamplesPerSec;
int nAvgBytesPerSec; int32_t nAvgBytesPerSec;
short nBlockAlign; int16_t nBlockAlign;
short nBitsPerSample; int16_t nBitsPerSample;
} wavehdr_t; } wavehdr_t;
typedef struct typedef struct
{ {
int data_id; // 'data' or 'fact' int32_t data_id; // 'data' or 'fact'
int dLen; int32_t dLen;
} chunkhdr_t; } chunkhdr_t;
extern sndlib_t sound; extern sndlib_t sound;

Loading…
Cancel
Save