openalbridge/openalbridge.c
changeset 2446 cbb3af76bcc0
parent 2445 5033848d3afa
child 2494 1e10a47cabea
equal deleted inserted replaced
2445:5033848d3afa 2446:cbb3af76bcc0
   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);