summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/mikro80.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/mikro80.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/mikro80.cpp')
-rw-r--r--src/mame/drivers/mikro80.cpp17
1 files changed, 9 insertions, 8 deletions
diff --git a/src/mame/drivers/mikro80.cpp b/src/mame/drivers/mikro80.cpp
index ae543027dfc..083edea51da 100644
--- a/src/mame/drivers/mikro80.cpp
+++ b/src/mame/drivers/mikro80.cpp
@@ -11,10 +11,10 @@
#include "emu.h"
#include "cpu/i8085/i8085.h"
-#include "sound/wave.h"
-#include "includes/mikro80.h"
#include "formats/rk_cas.h"
-#include "sound/dac.h"
+#include "includes/mikro80.h"
+#include "sound/volt_reg.h"
+#include "sound/wave.h"
#include "softlist.h"
/* Address maps */
@@ -41,7 +41,7 @@ ADDRESS_MAP_END
static ADDRESS_MAP_START( radio99_io , AS_IO, 8, mikro80_state )
ADDRESS_MAP_UNMAP_HIGH
AM_RANGE( 0x01, 0x01) AM_READWRITE(mikro80_tape_r, mikro80_tape_w )
- AM_RANGE( 0x04, 0x04) AM_DEVWRITE("dac", dac_device, write_unsigned8)
+ AM_RANGE( 0x04, 0x04) AM_WRITE(radio99_sound_w)
AM_RANGE( 0x05, 0x05) AM_READWRITE(mikro80_8255_portc_r, mikro80_8255_portc_w )
AM_RANGE( 0x06, 0x06) AM_READ(mikro80_8255_portb_r)
AM_RANGE( 0x07, 0x07) AM_WRITE(mikro80_8255_porta_w)
@@ -181,9 +181,9 @@ static MACHINE_CONFIG_START( mikro80, mikro80_state )
MCFG_GFXDECODE_ADD("gfxdecode", "palette", mikro80)
MCFG_PALETTE_ADD_MONOCHROME("palette")
- MCFG_SPEAKER_STANDARD_MONO("mono")
+ MCFG_SPEAKER_STANDARD_MONO("speaker")
MCFG_SOUND_WAVE_ADD(WAVE_TAG, "cassette")
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 0.25)
+ MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.25)
MCFG_CASSETTE_ADD( "cassette" )
MCFG_CASSETTE_FORMATS(rk8_cassette_formats)
@@ -199,8 +199,9 @@ static MACHINE_CONFIG_DERIVED( radio99, mikro80 )
MCFG_CPU_MODIFY("maincpu")
MCFG_CPU_IO_MAP(radio99_io)
- MCFG_SOUND_ADD("dac", DAC, 0)
- MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 16.00)
+ MCFG_SOUND_ADD("dac", DAC_1BIT, 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "speaker", 0.12)
+ 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)
MACHINE_CONFIG_END
static MACHINE_CONFIG_DERIVED( kristall, mikro80 )