|
|
| version 1.1, 2004/08/01 05:31:31 | version 1.2, 2004/08/17 15:43:34 |
|---|---|
| Line 65 void SOUNDCALL psggen_getpcm(PSGGEN psg, | Line 65 void SOUNDCALL psggen_getpcm(PSGGEN psg, |
| } | } |
| noisetbl += psg->noise.base; | noisetbl += psg->noise.base; |
| noisetbl >>= 1; | noisetbl >>= 1; |
| TRACEOUT(("noisetbl = %.8x", noisetbl)); | |
| } | } |
| } | } |
| tone = psg->tone; | tone = psg->tone; |
| Line 100 void SOUNDCALL psggen_getpcm(PSGGEN psg, | Line 101 void SOUNDCALL psggen_getpcm(PSGGEN psg, |
| noise = noisetbl; | noise = noisetbl; |
| for (i=0; i<(1 << PSGADDEDBIT); i++) { | for (i=0; i<(1 << PSGADDEDBIT); i++) { |
| tone->count += tone->freq; | tone->count += tone->freq; |
| if ((tone->count >= 0) || (noise & 1)) { | if ((tone->count >= 0) && (noise & 1)) { |
| samp += vol; | samp += vol; |
| } | } |
| else { | else { |