static DEVICE_START( tia ) { tia_state *info = get_safe_token(device); info->channel = stream_create(device, 0, 1, device->clock, info, tia_update); info->chip = tia_sound_init(device->clock, device->clock, 16); assert_always(info->chip != NULL, "Error creating TIA chip"); }
int tia_sh_start(const struct MachineSound *msound) { intf = msound->sound_interface; if (Machine->sample_rate == 0) return 0; channel = stream_init("TIA", intf->volume, Machine->sample_rate, 0, tia_process); if (channel == -1) return 1; tia_sound_init(intf->clock, Machine->sample_rate, intf->gain); return 0; }
void tia_device::device_start() { m_channel = stream_alloc(0, 1, clock()); m_chip = tia_sound_init(this, clock(), clock(), 16); assert_always(m_chip != nullptr, "Error creating TIA chip"); }