diff options
author | 2013-01-31 15:46:45 +0000 | |
---|---|---|
committer | 2013-01-31 15:46:45 +0000 | |
commit | 0068d9316da7da20b4dbe168e4986c3dc765600e (patch) | |
tree | e3ca101ee56c309c396f642b1b3afddca8251740 /src/mame/audio/timeplt.c | |
parent | daea35e7d56d3236188e36d4112ee1a8bf4b0cb3 (diff) |
Modernize the Volume and RC filter sound devices. [Andrew Gardner]
Diffstat (limited to 'src/mame/audio/timeplt.c')
-rw-r--r-- | src/mame/audio/timeplt.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/mame/audio/timeplt.c b/src/mame/audio/timeplt.c index 7c54c76000b..6c538237655 100644 --- a/src/mame/audio/timeplt.c +++ b/src/mame/audio/timeplt.c @@ -118,7 +118,7 @@ static void filter_w( device_t *device, int data ) if (data & 2) C += 47000; /* 47000pF = 0.047uF */ - filter_rc_set_RC(device, FLT_RC_LOWPASS, 1000, 5100, 0, CAP_P(C)); + dynamic_cast<filter_rc_device*>(device)->filter_rc_set_RC(FLT_RC_LOWPASS, 1000, 5100, 0, CAP_P(C)); } @@ -233,18 +233,18 @@ MACHINE_CONFIG_FRAGMENT( timeplt_sound ) MCFG_SOUND_ROUTE(1, "filter.1.1", 0.60) MCFG_SOUND_ROUTE(2, "filter.1.2", 0.60) - MCFG_SOUND_ADD("filter.0.0", FILTER_RC, 0) + MCFG_FILTER_RC_ADD("filter.0.0", 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) - MCFG_SOUND_ADD("filter.0.1", FILTER_RC, 0) + MCFG_FILTER_RC_ADD("filter.0.1", 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) - MCFG_SOUND_ADD("filter.0.2", FILTER_RC, 0) + MCFG_FILTER_RC_ADD("filter.0.2", 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) - MCFG_SOUND_ADD("filter.1.0", FILTER_RC, 0) + MCFG_FILTER_RC_ADD("filter.1.0", 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) - MCFG_SOUND_ADD("filter.1.1", FILTER_RC, 0) + MCFG_FILTER_RC_ADD("filter.1.1", 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) - MCFG_SOUND_ADD("filter.1.2", FILTER_RC, 0) + MCFG_FILTER_RC_ADD("filter.1.2", 0) MCFG_SOUND_ROUTE(ALL_OUTPUTS, "mono", 1.0) MACHINE_CONFIG_END |