summaryrefslogtreecommitdiffstatshomepage
path: root/src/mame/drivers/jangou.c
diff options
context:
space:
mode:
author Ivan Vangelista <mesgnet@yahoo.it>2013-10-27 19:38:03 +0000
committer Ivan Vangelista <mesgnet@yahoo.it>2013-10-27 19:38:03 +0000
commit82b896637bdc509a4b183622fd30cbba81d7d6f3 (patch)
tree39af4c4eff27257a7970a4026e5a08d47d81e1c8 /src/mame/drivers/jangou.c
parentfaa717c9a1de55164d7e20c30b3b1f612030e334 (diff)
Removed SOUND_START legacy MACRO. Added SOUND_START_MEMBER and SOUND_RESET_MEMBER macros. (nw)
Diffstat (limited to 'src/mame/drivers/jangou.c')
-rw-r--r--src/mame/drivers/jangou.c21
1 files changed, 5 insertions, 16 deletions
diff --git a/src/mame/drivers/jangou.c b/src/mame/drivers/jangou.c
index 9457f65e476..e661d864037 100644
--- a/src/mame/drivers/jangou.c
+++ b/src/mame/drivers/jangou.c
@@ -33,7 +33,7 @@ $c088-$c095 player tiles
#include "sound/msm5205.h"
#include "video/resnet.h"
#include "machine/nvram.h"
-#include "drivlgcy.h"
+
#define MASTER_CLOCK XTAL_19_968MHz
@@ -908,16 +908,6 @@ static const msm5205_interface msm5205_config =
MSM5205_S96_4B
};
-static SOUND_START( jangou )
-{
- jangou_state *state = machine.driver_data<jangou_state>();
-
- /* Create a timer to feed the CVSD DAC with sample bits */
- state->m_cvsd_bit_timer = machine.scheduler().timer_alloc(timer_expired_delegate(FUNC(jangou_state::cvsd_bit_timer_callback),state));
- state->m_cvsd_bit_timer->adjust(attotime::from_hz(MASTER_CLOCK / 1024), 0, attotime::from_hz(MASTER_CLOCK / 1024));
-}
-
-
/*************************************
*
* Machine driver
@@ -937,6 +927,10 @@ void jangou_state::machine_start()
save_item(NAME(m_cvsd_shiftreg));
save_item(NAME(m_cvsd_shift_cnt));
+
+ /* Create a timer to feed the CVSD DAC with sample bits */
+ m_cvsd_bit_timer = machine().scheduler().timer_alloc(timer_expired_delegate(FUNC(jangou_state::cvsd_bit_timer_callback), this));
+ m_cvsd_bit_timer->adjust(attotime::from_hz(MASTER_CLOCK / 1024), 0, attotime::from_hz(MASTER_CLOCK / 1024));
}
MACHINE_START_MEMBER(jangou_state,jngolady)
@@ -1007,8 +1001,6 @@ static MACHINE_CONFIG_START( jangou, jangou_state )
/* sound hardware */
- MCFG_SOUND_START(jangou)
-
MCFG_SPEAKER_STANDARD_MONO("mono")
MCFG_SOUND_ADD("aysnd", AY8910, MASTER_CLOCK / 16)
@@ -1037,7 +1029,6 @@ static MACHINE_CONFIG_DERIVED( jngolady, jangou )
MCFG_MACHINE_RESET_OVERRIDE(jangou_state,jngolady)
/* sound hardware */
- MCFG_SOUND_START(0)
MCFG_DEVICE_REMOVE("cvsd")
MCFG_SOUND_ADD("msm", MSM5205, XTAL_400kHz)
@@ -1059,7 +1050,6 @@ static MACHINE_CONFIG_DERIVED( cntrygrl, jangou )
MCFG_MACHINE_RESET_OVERRIDE(jangou_state,common)
/* sound hardware */
- MCFG_SOUND_START(0)
MCFG_DEVICE_REMOVE("cvsd")
MACHINE_CONFIG_END
@@ -1079,7 +1069,6 @@ static MACHINE_CONFIG_DERIVED( roylcrdn, jangou )
MCFG_MACHINE_RESET_OVERRIDE(jangou_state,common)
/* sound hardware */
- MCFG_SOUND_START(0)
MCFG_DEVICE_REMOVE("cvsd")
MACHINE_CONFIG_END