load_voc.c
changeset 114 83ab4ef4458b
parent 111 3b709e102787
child 116 fa8c35dfe1d1
     1.1 --- a/load_voc.c	Tue Sep 11 19:14:36 2001 +0000
     1.2 +++ b/load_voc.c	Tue Sep 11 19:33:01 2001 +0000
     1.3 @@ -88,7 +88,7 @@
     1.4  #define VOC_DATA_16	9
     1.5  
     1.6  
     1.7 -static inline int voc_check_header(SDL_RWops *src)
     1.8 +static int voc_check_header(SDL_RWops *src)
     1.9  {
    1.10      /* VOC magic header */
    1.11      Uint8  signature[20];  /* "Creative Voice File\032" */
    1.12 @@ -127,7 +127,7 @@
    1.13      Uint32 new_rate_long;
    1.14      Uint8 trash[6];
    1.15      Uint16 period;
    1.16 -    int i;
    1.17 +    unsigned int i;
    1.18  
    1.19      v->silent = 0;
    1.20      while (v->rest == 0)
    1.21 @@ -167,7 +167,7 @@
    1.22                      }
    1.23  
    1.24                      v->rate = uc;
    1.25 -                    spec->freq = 1000000.0/(256 - v->rate);
    1.26 +                    spec->freq = (Uint16)(1000000.0/(256 - v->rate));
    1.27                      v->channels = 1;
    1.28                  }
    1.29