Пример #1
0
        public void FrameAdvance(bool render, bool rendersound = true)
        {
            Frame++;
            if (Controller.IsPressed("Power"))
            {
                LibLynx.Reset(Core);
            }

            int samples = _soundbuff.Length;

            IsLagFrame = LibLynx.Advance(Core, GetButtons(), _videobuff, _soundbuff, ref samples);
            _numsamp   = samples / 2;           // sound provider wants number of sample pairs
            if (IsLagFrame)
            {
                LagCount++;
            }
        }
Пример #2
0
        public bool FrameAdvance(IController controller, bool render, bool rendersound = true)
        {
            if (controller.IsPressed("Power"))
            {
                LibLynx.Reset(Core);
            }

            int samples = _soundBuff.Length;

            IsLagFrame = LibLynx.Advance(Core, GetButtons(controller), _videoBuff, _soundBuff, ref samples);
            _numSamp   = samples / 2;           // sound provider wants number of sample pairs
            if (IsLagFrame)
            {
                LagCount++;
            }

            Frame++;

            return(true);
        }