| 670 | if (gSnd.voice[i + 6].sndID == handle) |
| 671 | { |
| 672 | return (voices[i].flags & 0x4 && (voices[i].flags & 0x8) == 0); |
| 673 | } |
| 674 | } |
| 675 | return false; |
| 676 | } |
| 677 | |
| 678 | U32 iVolFromX(F32 param1) |
| 679 | { |
| 680 | float f = MAX(param1, 1e-20f); |
| 681 | |
| 682 | S32 i = 43.43f * xlog(f); |
| 683 | S32 comp = MIN(i, 0); |
| 684 | |
| 685 | if (comp < -0x388) |
| 686 | { |
| 687 | return -0x388; |
| 688 | } |
| 689 | else |
| 690 | { |