Beispiel #1
0
 public ym2413()        
 {
     this.name = "YM-2413";
     this.sound_num = Mame.SOUND_YM2413;
     for (int i = 0; i < Mame.MAX_2413; i++)
         ym2413_state[i] = new YM2413_state();
 }
Beispiel #2
0
        public override int start(Mame.MachineSound msound)
        {
	for (int i=0; i<Mame.MAX_2413; i++)
	{
		/* Reset the chip state to 0 */
        ym2413_state[i] = new YM2413_state();

		/*
		Copy default values for the user instument. This is not strictly necessary,
		but will allow altering of the extra OPL settings that aren't
		set by the 2413 (feedback and wave select).
		*/
		for (int j=0; j<ym2413_parameter_count; j++)
		{
			ym2413_state[i].user_instrument[j]=ym2413_instruments[0][j];
		}
	}
    return YM3812.YM3812_sh_start(msound);
        }