src/emu/sound/sn76496.c
| r6299 | r6300 | |
| 84 | 84 | INT32 FeedbackInvert; /* feedback invert flag (xor vs xnor) */ |
| 85 | 85 | INT32 Period[4]; /* Length of 1/2 of waveform */ |
| 86 | 86 | INT32 Count[4]; /* Position within the waveform */ |
| 87 | | INT32 OldNoise; /* 1 bit output of the PREVIOUS noise output, buffered by the volume amp */ |
| 87 | INT32 OldNoise; /* 1 bit output of the PREVIOUS noise output */ |
| 88 | 88 | INT32 Output[4]; /* 1-bit output of each channel, pre-volume */ |
| 89 | 89 | INT32 CyclestoREADY;/* number of cycles until the READY line goes active */ |
| 90 | 90 | }; |
| r6299 | r6300 | |
| 172 | 172 | R->Period[3] = ((n&3) == 3) ? 2 * R->Period[2] : (STEP << (5+(n&3))); |
| 173 | 173 | /* Reset noise shifter */ |
| 174 | 174 | R->RNG = R->FeedbackMask; |
| 175 | | R->Output[3] = R->RNG & 1; |
| 175 | R->OldNoise = 0; |
| 176 | R->Output[3] = R->OldNoise; |
| 177 | R->OldNoise = R->RNG & 1; |
| 176 | 178 | } |
| 177 | 179 | break; |
| 178 | 180 | } |