Added a header so that snd_sb.c compiles correctly again;

Fixed a bug in snd_dopl.cc.
This commit is contained in:
OBattler
2017-06-03 14:34:32 +02:00
parent 197aa051cf
commit 42ffa5b9d2
2 changed files with 2 additions and 1 deletions

View File

@@ -88,7 +88,7 @@ void opl_write(int nr, uint16_t addr, uint8_t val)
if (!(addr & 1)) if (!(addr & 1))
{ {
if (!opl[nr].is_opl3 || !opl3_type) if (!opl[nr].is_opl3 || !opl3_type)
opl[nr].addr = (int)opl[nr].chip.WriteAddr(addr, val) & 0xff; opl[nr].addr = (int)opl[nr].chip.WriteAddr(addr, val) & (opl[nr].is_opl3 ? 0x1ff : 0xff);
else else
opl[nr].addr = (int)OPL3_WriteAddr(&opl[nr].opl3chip, addr, val) & 0x1ff; opl[nr].addr = (int)OPL3_WriteAddr(&opl[nr].opl3chip, addr, val) & 0x1ff;
} }

View File

@@ -26,6 +26,7 @@
#include "../rom.h" #include "../rom.h"
#include "../device.h" #include "../device.h"
#include "sound.h" #include "sound.h"
#include "snd_dbopl.h"
#include "snd_emu8k.h" #include "snd_emu8k.h"
#include "snd_mpu401.h" #include "snd_mpu401.h"
#include "snd_opl.h" #include "snd_opl.h"