Fixed read data on OPL3 - Windows Sound System works again.

This commit is contained in:
TomW 2016-02-10 20:49:45 +00:00
commit 9795fe8f34

View file

@ -113,9 +113,9 @@ uint8_t opl_read(int nr, uint16_t addr)
{ {
if (!(addr & 1)) if (!(addr & 1))
{ {
return (opl[nr].status & opl[nr].status_mask) | 0x06; return (opl[nr].status & opl[nr].status_mask) | (opl[nr].is_opl3 ? 0 : 0x06);
} }
return 0xff; return opl[nr].is_opl3 ? 0 : 0xff;
} }
void opl2_update(int nr, int16_t *buffer, int samples) void opl2_update(int nr, int16_t *buffer, int samples)