equal
deleted
inserted
replaced
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); |