Sync with MESS (no whatsnew)

This commit is contained in:
Miodrag Milanovic 2012-04-16 08:10:08 +00:00
parent 95d77623ee
commit b383296ea9
2 changed files with 10 additions and 0 deletions

View File

@ -1357,6 +1357,14 @@ WRITE16_DEVICE_HANDLER( spb640_w )
}
}
void sp0256_set_clock(device_t *device, int clock)
{
sp0256_state *sp = get_safe_token(device);
device->set_unscaled_clock(clock);
sp->stream->set_sample_rate(clock / CLOCK_DIVIDER);
}
/**************************************************************************
* Generic get_info
**************************************************************************/

View File

@ -61,6 +61,8 @@ struct _sp0256_interface
void sp0256_bitrevbuff(UINT8 *buffer, unsigned int start, unsigned int length);
void sp0256_set_clock(device_t *device, int clock);
WRITE8_DEVICE_HANDLER( sp0256_ALD_w );
READ_LINE_DEVICE_HANDLER( sp0256_lrq_r );