Exemplo n.º 1
0
bool SID6581_t::reset()
{
	optr1.clear();
	enveEmuResetOperator( &optr1 );
	optr2.clear();
	enveEmuResetOperator( &optr2 );
	optr3.clear();
	enveEmuResetOperator( &optr3 );
	optr3_outputmask = ~0;  /* on */

	//sampleEmuReset();

	filter.Type = filter.CurType = 0;
	filter.Value = 0;
	filter.Dy = filter.ResDy = 0;

	optr1.set();
	optr2.set();
	optr3.set();

	optr1.set2();
	optr2.set2();
	optr3.set2();

	return true;
}
Exemplo n.º 2
0
Arquivo: sid.c Projeto: bji/libmame
int sidEmuReset(_SID6581 *This)
{
	sidClearOperator( &This->optr1 );
	enveEmuResetOperator( &This->optr1 );
	sidClearOperator( &This->optr2 );
	enveEmuResetOperator( &This->optr2 );
	sidClearOperator( &This->optr3 );
	enveEmuResetOperator( &This->optr3 );
	This->optr3_outputmask = ~0;  /* on */

//  sampleEmuReset();

	This->filter.Type = (This->filter.CurType = 0);
	This->filter.Value = 0;
	This->filter.Dy = (This->filter.ResDy = 0);

	sidEmuSet( &This->optr1 );
	sidEmuSet( &This->optr2 );
	sidEmuSet( &This->optr3 );

	sidEmuSet2( &This->optr1 );
	sidEmuSet2( &This->optr2 );
	sidEmuSet2( &This->optr3 );

	return TRUE;
}