1
0
Fork 0

repeat last value in the DSP indefenitely. Fixes Jangle demo

Imported-from: https://svn.code.sf.net/p/dosbox/code-0/dosbox/trunk@2226
This commit is contained in:
Peter Veenstra 2005-06-29 20:10:47 +00:00
parent 5f5b27e157
commit 0390f61702

View file

@ -833,7 +833,8 @@ static void DSP_DoWrite(Bit8u val) {
}
static Bit8u DSP_ReadData(void) {
Bit8u data=0;
/* Static so it repeats the last value on succesive reads (JANGLE DEMO) */
static Bit8u data = 0;
if (sb.dsp.out.used) {
data=sb.dsp.out.data[sb.dsp.out.pos];
sb.dsp.out.pos++;