#if !defined(TARGET_SDL) && !defined(PLATFORM_MSDOS)
byte sound_header_buffer[WAV_HEADER_SIZE];
char chunk[CHUNK_ID_LEN + 1];
- int chunk_length, dummy;
+ int chunk_size, dummy;
FILE *file;
int i;
#endif
}
/* read chunk "RIFF" */
- getFileChunk(file, chunk, &chunk_length, BYTE_ORDER_LITTLE_ENDIAN);
+ getFileChunk(file, chunk, &chunk_size, BYTE_ORDER_LITTLE_ENDIAN);
if (strcmp(chunk, "RIFF") != 0)
{
Error(ERR_WARN, "missing 'RIFF' chunk of sound file '%s'", filename);
sound_header_buffer[i] = fgetc(file);
/* read chunk "data" */
- getFileChunk(file, chunk, &chunk_length, BYTE_ORDER_LITTLE_ENDIAN);
+ getFileChunk(file, chunk, &chunk_size, BYTE_ORDER_LITTLE_ENDIAN);
if (strcmp(chunk, "data") != 0)
{
Error(ERR_WARN, "missing 'data' chunk of sound file '%s'", filename);
return FALSE;
}
- snd_info->data_len = chunk_length;
+ snd_info->data_len = chunk_size;
snd_info->data_ptr = checked_malloc(snd_info->data_len);
/* read sound data */