Beispiel #1
0
void okim6258_device::device_start()
{
	compute_tables();

	m_master_clock = clock();

	m_divider = dividers[m_start_divider];

	m_stream = stream_alloc(0, 1, clock()/m_divider);

	m_signal = -2;
	m_step = 0;

	okim6258_state_save_register();
}
Beispiel #2
0
void okim6258_device::device_start()
{
	const okim6258_interface *intf = (const okim6258_interface *)static_config();

	compute_tables();

	m_master_clock = clock();
	m_adpcm_type = intf->adpcm_type;

	/* D/A precision is 10-bits but 12-bit data can be output serially to an external DAC */
	m_output_bits = intf->output_12bits ? 12 : 10;
	m_divider = dividers[intf->divider];

	m_stream = stream_alloc(0, 1, clock()/m_divider);

	m_signal = -2;
	m_step = 0;

	okim6258_state_save_register();
}