| ... | ... |
@@ -255,9 +255,8 @@ audio_talk(Device *d, Uint8 b0, Uint8 w) |
| 255 | 255 |
if(!w && b0 == 0x2) {
|
| 256 | 256 |
d->dat[0x2] = apu_get_vu(c); |
| 257 | 257 |
} |
| 258 |
- if(w && b0 == 0xf) {
|
|
| 258 |
+ else if(w && b0 == 0xf) {
|
|
| 259 | 259 |
SDL_LockAudioDevice(audio_id); |
| 260 |
- c->period -= (Sint16)mempeek16(d->dat, 0x0); |
|
| 261 | 260 |
c->len = mempeek16(d->dat, 0xa); |
| 262 | 261 |
c->addr = &d->mem[mempeek16(d->dat, 0xc)]; |
| 263 | 262 |
c->volume[0] = d->dat[0xe] >> 4; |