equal
deleted
inserted
replaced
215 } |
215 } |
216 |
216 |
217 /*Set volume for sound number index*/ |
217 /*Set volume for sound number index*/ |
218 if(iIndex < 0 || iIndex >= iNumSounds) { |
218 if(iIndex < 0 || iIndex >= iNumSounds) { |
219 errno = EINVAL; |
219 errno = EINVAL; |
220 err_ret("(%s) ERROR - Index out of bounds (got %d, max %d)", prog, index, globalindex); |
220 err_ret("(%s) ERROR - Index (%d) out of bounds", prog, iIndex); |
221 return; |
221 return; |
222 } |
222 } |
223 |
223 |
224 if(cPercentage > 100) |
224 if(cPercentage > 100) |
225 SSound_volume(&aSounds[iIndex], 1.0f); |
225 SSound_volume(&aSounds[iIndex], 1.0f); |