openalbridge/openalbridge.c
changeset 2501 51ebab1b446d
parent 2496 8ea93b0d49ee
child 2529 51e5df1c8462
equal deleted inserted replaced
2500:31ba68a50208 2501:51ebab1b446d
   387                 err_ret("(%s) WARN - OpenAL not initialized", prog);
   387                 err_ret("(%s) WARN - OpenAL not initialized", prog);
   388                 return ;
   388                 return ;
   389         }
   389         }
   390         
   390         
   391         fade = (fade_t*) Malloc(sizeof(fade_t));
   391         fade = (fade_t*) Malloc(sizeof(fade_t));
   392         fade->index = iIndex;
   392         fade->index = theSounds[iIndex].sourceIndex;
   393         fade->quantity = quantity;
   393         fade->quantity = quantity;
   394         
   394         
   395         if(iIndex < 0 || iIndex >= iNumSounds) {
   395         if(iIndex < 0 || iIndex >= iNumSounds) {
   396                 errno = EINVAL;
   396                 errno = EINVAL;
   397                 err_ret("(%s) ERROR - Index (%d) out of bounds", prog, iIndex);
   397                 err_ret("(%s) ERROR - Index (%d) out of bounds", prog, iIndex);