diff options
author | 2011-02-03 09:06:34 +0000 | |
---|---|---|
committer | 2011-02-03 09:06:34 +0000 | |
commit | f534d245c02059be44071e9c37f38497f12f67f8 (patch) | |
tree | b7b724026e8005bed1a42de7b3b6ea72178e4554 /src/ldplayer | |
parent | 1e88333178b63ee0d5b914e181b19b3b161f807b (diff) |
Attotime bulk conversion step:
attotime_zero => attotime::zero
attotime_never => attotime::never
ATTOTIME_IN_SEC(s) => attotime::from_seconds(s)
ATTOTIME_IN_MSEC(m) => attotime::from_msec(m)
ATTOTIME_IN_USEC(u) => attotime::from_usec(u)
ATTOTIME_IN_NSEC(n) => attotime::from_nsec(n)
ATTOTIME_IN_HZ(h) => attotime::from_hz(h)
Also, changed the following MCFG macros to require a full
attotime specification:
MCFG_TIMER_ADD_PERIODIC
MCFG_QUANTUM_TIME
MCFG_WATCHDOG_TIME_INIT
Diffstat (limited to 'src/ldplayer')
-rw-r--r-- | src/ldplayer/ldplayer.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ldplayer/ldplayer.c b/src/ldplayer/ldplayer.c index f2c960f8b98..6964598e332 100644 --- a/src/ldplayer/ldplayer.c +++ b/src/ldplayer/ldplayer.c @@ -261,7 +261,7 @@ static TIMER_CALLBACK( autoplay ) static MACHINE_RESET( ldplayer ) { /* set up a timer to start playing immediately */ - timer_set(machine, attotime_zero, NULL, 0, autoplay); + timer_set(machine, attotime::zero, NULL, 0, autoplay); /* indicate the name of the file we opened */ popmessage("Opened %s\n", filename.cstr()); @@ -293,7 +293,7 @@ static TIMER_CALLBACK( pr8210_bit_off_callback ) static TIMER_CALLBACK( pr8210_bit_callback ) { - attotime duration = ATTOTIME_IN_MSEC(30); + attotime duration = attotime::from_msec(30); device_t *laserdisc = (device_t *)ptr; UINT8 bitsleft = param >> 16; UINT8 data = param; @@ -303,7 +303,7 @@ static TIMER_CALLBACK( pr8210_bit_callback ) { /* assert the line and set a timer for deassertion */ laserdisc_line_w(laserdisc, LASERDISC_LINE_CONTROL, ASSERT_LINE); - timer_set(machine, ATTOTIME_IN_USEC(250), ptr, 0, pr8210_bit_off_callback); + timer_set(machine, attotime::from_usec(250), ptr, 0, pr8210_bit_off_callback); /* space 0 bits apart by 1msec, and 1 bits by 2msec */ duration = attotime::from_msec((data & 0x80) ? 2 : 1); @@ -332,7 +332,7 @@ static MACHINE_START( pr8210 ) static MACHINE_RESET( pr8210 ) { MACHINE_RESET_CALL(ldplayer); - timer_adjust_oneshot(pr8210_bit_timer, attotime_zero, 0); + timer_adjust_oneshot(pr8210_bit_timer, attotime::zero, 0); } |