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:
parent
5f5b27e157
commit
0390f61702
1 changed files with 2 additions and 1 deletions
|
@ -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++;
|
||||
|
|
Loading…
Add table
Reference in a new issue