public bool FrameAdvance(IController controller, bool render, bool rendersound) { var buttons = FrameAdvancePrep(controller); LibSameboy.sameboy_frameadvance(SameboyState, buttons, GetAccX(controller), GetAccY(), VideoBuffer, render, _settings.ShowBorder); if (!rendersound) { DiscardSamples(); } FrameAdvancePost(); return(true); }