src/mame/audio/snes_snd.c
| r7956 | r7957 | |
| 126 | 126 | static const int *const G1 = &gauss[256]; |
| 127 | 127 | static const int *const G2 = &gauss[512]; |
| 128 | 128 | static const int *const G3 = &gauss[255]; |
| 129 | | static const int *const G4 = &gauss[511]; |
| 129 | static const int *const G4 = &gauss[0]; |
| 130 | 130 | |
| 131 | 131 | static const int mask = 0xFF; |
| 132 | 132 | |
| r7956 | r7957 | |
| 588 | 588 | the sum of the products of each input sample point with the value |
| 589 | 589 | of the bell-curve corresponding to that point. */ |
| 590 | 590 | vl = vp->mixfrac >> 4; |
| 591 | | vr = ((G4[-vl] * vp->sampbuf[vp->sampptr]) >> 11 ) & ~1; |
| 591 | vr = ((G4[-vl-1] * vp->sampbuf[vp->sampptr]) >> 11 ) & ~1; |
| 592 | 592 | vr += ((G3[-vl] * vp->sampbuf[(vp->sampptr + 1) & 3]) >> 11) & ~1; |
| 593 | 593 | vr += ((G2[vl] * vp->sampbuf[(vp->sampptr + 2) & 3]) >> 11 ) & ~1; |
| 594 | 594 | |
| r7956 | r7957 | |
| 614 | 614 | vp->sampbuf[(vp->sampptr + 2) & 3], |
| 615 | 615 | G3[-vl], |
| 616 | 616 | vp->sampbuf[(vp->sampptr + 1) & 3], |
| 617 | | G4[-vl], |
| 617 | G4[-vl-1], |
| 618 | 618 | vp->sampbuf[vp->sampptr], |
| 619 | 619 | outx); |
| 620 | 620 | #endif |