summaryrefslogtreecommitdiffstats
path: root/src/mame/drivers/tp84.c
diff options
context:
space:
mode:
authorGravatarGravatar Andrew Gardner <andrew-gardner@users.noreply.github.com>2013-01-31 15:46:45 +0000
committerGravatarGravatar Andrew Gardner <andrew-gardner@users.noreply.github.com>2013-01-31 15:46:45 +0000
commit0068d9316da7da20b4dbe168e4986c3dc765600e (patch) (github)
treee3ca101ee56c309c396f642b1b3afddca8251740 /src/mame/drivers/tp84.c
parentdaea35e7d56d3236188e36d4112ee1a8bf4b0cb3 (diff)
downloadmame-0068d9316da7da20b4dbe168e4986c3dc765600e.tar.bz2
mame-0068d9316da7da20b4dbe168e4986c3dc765600e.zip
Modernize the Volume and RC filter sound devices. [Andrew Gardner]
Diffstat (limited to 'src/mame/drivers/tp84.c')
-rw-r--r--src/mame/drivers/tp84.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/drivers/tp84.c b/src/mame/drivers/tp84.c
index 03a08da7fc7..4d291b6df38 100644
--- a/src/mame/drivers/tp84.c
+++ b/src/mame/drivers/tp84.c
@@ -98,23 +98,23 @@ WRITE8_MEMBER(tp84_state::tp84_filter_w)
C = 0;
if (offset & 0x008) C += 47000; /* 47000pF = 0.047uF */
if (offset & 0x010) C += 470000; /* 470000pF = 0.47uF */
- filter_rc_set_RC(machine().device("filter1"),FLT_RC_LOWPASS,1000,2200,1000,CAP_P(C));
+ dynamic_cast<filter_rc_device*>(machine().device("filter1"))->filter_rc_set_RC(FLT_RC_LOWPASS,1000,2200,1000,CAP_P(C));
/* 76489 #1 (optional) */
C = 0;
if (offset & 0x020) C += 47000; /* 47000pF = 0.047uF */
if (offset & 0x040) C += 470000; /* 470000pF = 0.47uF */
-// filter_rc_set_RC(machine().device("filter2"),1000,2200,1000,C);
+ // dynamic_cast<filter_rc_device*>(machine().device("filter2"))->filter_rc_set_RC(,1000,2200,1000,C);
/* 76489 #2 */
C = 0;
if (offset & 0x080) C += 470000; /* 470000pF = 0.47uF */
- filter_rc_set_RC(machine().device("filter2"),FLT_RC_LOWPASS,1000,2200,1000,CAP_P(C));
+ dynamic_cast<filter_rc_device*>(machine().device("filter2"))->filter_rc_set_RC(FLT_RC_LOWPASS,1000,2200,1000,CAP_P(C));
/* 76489 #3 */
C = 0;
if (offset & 0x100) C += 470000; /* 470000pF = 0.47uF */
- filter_rc_set_RC(machine().device("filter3"),FLT_RC_LOWPASS,1000,2200,1000,CAP_P(C));
+ dynamic_cast<filter_rc_device*>(machine().device("filter3"))->filter_rc_set_RC(FLT_RC_LOWPASS,1000,2200,1000,CAP_P(C));
}
WRITE8_MEMBER(tp84_state::tp84_sh_irqtrigger_w)
@@ -346,11 +346,11 @@ static MACHINE_CONFIG_START( tp84, tp84_state )
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "filter3", 0.75)
MCFG_SOUND_CONFIG(psg_intf)
- MCFG_SOUND_ADD("filter1", FILTER_RC, 0)
+ MCFG_FILTER_RC_ADD("filter1", 0)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
- MCFG_SOUND_ADD("filter2", FILTER_RC, 0)
+ MCFG_FILTER_RC_ADD("filter2", 0)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
- MCFG_SOUND_ADD("filter3", FILTER_RC, 0)
+ MCFG_FILTER_RC_ADD("filter3", 0)
MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0)
MACHINE_CONFIG_END