summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/meyc8080.cpp
diff options
context:
space:
mode:
author smf- <smf-@users.noreply.github.com>2016-10-17 16:03:29 +0100
committer smf- <smf-@users.noreply.github.com>2016-10-17 16:04:02 +0100
commit36944269bd6fe1fb47822a2112c524b13c4b27f2 (patch)
treec1b29a760bb9a1e222a9390fbc34fe09d407ae91 /src/mame/drivers/meyc8080.cpp
parent8676fc0d8dd0c3ccf2925075d86338da099ce148 (diff)
DAC WIP, started documenting the DACs in use. [smf]
ataxx: Fixed missing sound channel caused by one dac not being hooked up and one dac being hooked up to two addresses. bestbest: Fixed high pitch screech caused by incorrect addressing (two dacs weren't hooked up and two were hooked up to two addresses). cchasm: Fixed static noise generation caused by feeding the same bit to both dacs. cheekyms: Slightly improved sound by implementing sound triggers as 8 x 1 bit dacs instead of 1 x 8 bit dac. galeb: Fixed sound by implementing it according to http://www.deltasoft.com.hr/retro/galebemu.htm & implemented enough of LOAD/SAVE to stop it hanging. hard drivin: (all games in driver) Improved 12 bit controls, although centre still goes out of sync. mea8000: Converted to a sound device. megaphx: Fixed noisy samples due to wrong format. microvsn: Fixed sound pitch caused by incorrect usage of write_signed8(). seicross: Changed to a 4 bit dac as samples are packed nibble. spaceg: Preliminary sound using space invaders samples. suna8: Changed to a 4 bit dac as samples are packed nibble. vcombat: Fixed static during machine gun fire due to incorrect dc offset removal. vectrex: Fixed noisy samples due to wrong format. wheelfir: Fixed sound, eeprom & analogue steering wheel and brake pedal.
Diffstat (limited to 'src/mame/drivers/meyc8080.cpp')
-rw-r--r--src/mame/drivers/meyc8080.cpp20
1 files changed, 11 insertions, 9 deletions
diff --git a/src/mame/drivers/meyc8080.cpp b/src/mame/drivers/meyc8080.cpp
index abd0cb8f070..095c615ae2e 100644
--- a/src/mame/drivers/meyc8080.cpp
+++ b/src/mame/drivers/meyc8080.cpp
@@ -57,8 +57,9 @@
#include "emu.h"
#include "cpu/i8085/i8085.h"
-#include "sound/dac.h"
#include "machine/nvram.h"
+#include "sound/dac.h"
+#include "sound/volt_reg.h"
#include "wldarrow.lh"
#include "mdrawpkr.lh"
@@ -89,7 +90,7 @@ public:
DECLARE_WRITE8_MEMBER(meyc8080_dac_4_w);
UINT32 screen_update_meyc8080(screen_device &screen, bitmap_rgb32 &bitmap, const rectangle &cliprect);
required_device<cpu_device> m_maincpu;
- required_device<dac_device> m_dac;
+ required_device<dac_byte_interface> m_dac;
};
@@ -276,25 +277,25 @@ WRITE8_MEMBER(meyc8080_state::counters_w)
WRITE8_MEMBER(meyc8080_state::meyc8080_dac_1_w)
{
- m_dac->write_unsigned8(0x00);
+ m_dac->write(0);
}
WRITE8_MEMBER(meyc8080_state::meyc8080_dac_2_w)
{
- m_dac->write_unsigned8(0x55);
+ m_dac->write(1);
}
WRITE8_MEMBER(meyc8080_state::meyc8080_dac_3_w)
{
- m_dac->write_unsigned8(0xaa);
+ m_dac->write(2);
}
WRITE8_MEMBER(meyc8080_state::meyc8080_dac_4_w)
{
- m_dac->write_unsigned8(0xff);
+ m_dac->write(3);
}
@@ -592,9 +593,10 @@ static MACHINE_CONFIG_START( meyc8080, meyc8080_state )
MCFG_SCREEN_UPDATE_DRIVER(meyc8080_state, screen_update_meyc8080)
/* audio hardware */
- MCFG_SPEAKER_STANDARD_MONO("mono")
- MCFG_DAC_ADD("dac")
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
+ MCFG_SPEAKER_STANDARD_MONO("speaker")
+ MCFG_SOUND_ADD("dac", DAC_2BIT_R2R, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.66) // unknown DAC
+ MCFG_DEVICE_ADD("vref", VOLTAGE_REGULATOR, 0) MCFG_VOLTAGE_REGULATOR_OUTPUT(5.0)
+ MCFG_SOUND_ROUTE_EX(0, "dac", 1.0, DAC_VREF_POS_INPUT) MCFG_SOUND_ROUTE_EX(0, "dac", -1.0, DAC_VREF_NEG_INPUT)
MACHINE_CONFIG_END