load_voc.c
changeset 144 11a2e00a16c4
parent 142 59564a17ae18
child 180 1f1da1e35e4d
     1.1 --- a/load_voc.c	Mon Dec 17 02:52:34 2001 +0000
     1.2 +++ b/load_voc.c	Mon Dec 17 05:03:10 2001 +0000
     1.3 @@ -50,7 +50,7 @@
     1.4  	Uint32	samples;		/* number of samples output */
     1.5  	Uint32	size;		/* word length of data */
     1.6  	Uint8 	channels;	/* number of sound channels */
     1.7 -	int     extended;       /* Has an extended block been read? */
     1.8 +	int     has_extended;       /* Has an extended block been read? */
     1.9  } vs_t;
    1.10  
    1.11  /* Size field */ 
    1.12 @@ -150,7 +150,7 @@
    1.13  
    1.14                  /* When DATA block preceeded by an EXTENDED     */
    1.15                  /* block, the DATA blocks rate value is invalid */
    1.16 -                if (!v->extended)
    1.17 +                if (!v->has_extended)
    1.18                  {
    1.19                      if (uc == 0)
    1.20                      {
    1.21 @@ -178,7 +178,7 @@
    1.22                      return 0;
    1.23                  }
    1.24  
    1.25 -                v->extended = 0;
    1.26 +                v->has_extended = 0;
    1.27                  v->rest = sblen - 2;
    1.28                  v->size = ST_SIZE_BYTE;
    1.29                  return 1;
    1.30 @@ -265,7 +265,7 @@
    1.31                  /* Set this byte so we know to use the rate      */
    1.32                  /* value from the extended block and not the     */
    1.33                  /* data block.                     */
    1.34 -                v->extended = 1;
    1.35 +                v->has_extended = 1;
    1.36                  if (SDL_RWread(src, &new_rate_short, sizeof (new_rate_short), 1) != 1)
    1.37                      return 0;
    1.38                  new_rate_short = SDL_SwapLE16(new_rate_short);
    1.39 @@ -389,7 +389,7 @@
    1.40  
    1.41      v.rate = -1;
    1.42      v.rest = 0;
    1.43 -    v.extended = 0;
    1.44 +    v.has_extended = 0;
    1.45      *audio_buf = NULL;
    1.46      *audio_len = 0;
    1.47      memset(spec, '\0', sizeof (SDL_AudioSpec));