public void nes_set_mute_mask(byte ChipID, UInt32 MuteMask) { if (NESAPUData[ChipID] == null) { return; } nes_state info = NESAPUData[ChipID]; // switch (EMU_CORE) // { //# ifdef ENABLE_ALL_CORES // case EC_MAME: // nesapu_set_mute_mask(info->chip_apu, MuteMask); // break; //#endif // case EC_NSFPLAY: if (nes_apu != null && info.chip_apu != null) { nes_apu.NES_APU_np_SetMask(info.chip_apu, (Int32)((MuteMask & 0x03) >> 0)); } if (nes_dmc != null && info.chip_dmc != null) { nes_dmc.NES_DMC_np_SetMask(info.chip_dmc, (Int32)((MuteMask & 0x1C) >> 2)); } // break; //} if (nes_fds != null && info.chip_fds != null) { nes_fds.NES_FDS_SetMask(info.chip_fds, (Int32)((MuteMask & 0x20) >> 5)); } return; }
public override void SetMask(int mask) { apu.NES_APU_np_SetMask(chip, mask); }