Esempio n. 1
0
static void play3s_init(struct sndbrdData *brdData) {
  play2s_init(brdData);
  tms5220_reset();
  tms5220_set_variant(TMS5220_IS_5200);
  cpu_set_irq_line(PLAYMATIC_SCPU, CDP1802_INPUT_LINE_INT, CLEAR_LINE);
  sndlocals.ef[3] = sndlocals.ef[4] = 1;
}
Esempio n. 2
0
int tms5220_sh_start(const struct MachineSound *msound)
{
    intf = (const struct TMS5220interface *)msound->sound_interface;

    /* reset the 5220 */
    tms5220_reset();
    tms5220_set_irq(intf->irq);

    /* set the initial frequency */
    stream = -1;
    tms5220_set_frequency(intf->baseclock);
    source_pos = 0;
    last_sample = curr_sample = 0;

	/* initialize a stream */
	stream = stream_init("TMS5220", intf->mixing_level, Machine->sample_rate, 0, tms5220_update);
	if (stream == -1)
		return 1;

    /* request a sound channel */
    return 0;
}