diff options
Diffstat (limited to 'src/emu/sound/upd7759.c')
-rw-r--r-- | src/emu/sound/upd7759.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/src/emu/sound/upd7759.c b/src/emu/sound/upd7759.c index 2748c647dfa..37b5a40906e 100644 --- a/src/emu/sound/upd7759.c +++ b/src/emu/sound/upd7759.c @@ -522,9 +522,9 @@ static void upd7759_update(void *param, stream_sample_t **inputs, stream_sample_ *************************************************************/ -static TIMER_CALLBACK_PTR( upd7759_slave_update ) +static TIMER_CALLBACK( upd7759_slave_update ) { - struct upd7759_chip *chip = param; + struct upd7759_chip *chip = ptr; UINT8 olddrq = chip->drq; /* update the stream */ @@ -540,7 +540,7 @@ static TIMER_CALLBACK_PTR( upd7759_slave_update ) /* set a timer to go off when that is done */ if (chip->state != STATE_IDLE) - timer_adjust_ptr(chip->timer, attotime_mul(chip->clock_period, chip->clocks_left), attotime_zero); + timer_adjust(chip->timer, attotime_mul(chip->clock_period, chip->clocks_left), 0, attotime_zero); } @@ -575,7 +575,7 @@ static void upd7759_reset(struct upd7759_chip *chip) /* turn off any timer */ if (chip->timer) - timer_adjust_ptr(chip->timer, attotime_never, attotime_zero); + timer_adjust(chip->timer, attotime_never, 0, attotime_zero); } @@ -643,7 +643,7 @@ static void *upd7759_start(int sndindex, int clock, const void *config) if (intf->region != 0) chip->rom = chip->rombase = memory_region(intf->region); else - chip->timer = timer_alloc_ptr(upd7759_slave_update, chip); + chip->timer = timer_alloc(upd7759_slave_update, chip); /* set the DRQ callback */ chip->drqcallback = intf->drqcallback; @@ -702,7 +702,7 @@ void upd7759_start_w(int which, UINT8 data) /* for slave mode, start the timer going */ if (chip->timer) - timer_adjust_ptr(chip->timer, attotime_zero, attotime_zero); + timer_adjust(chip->timer, attotime_zero, 0, attotime_zero); } } |