audio fixed

This commit is contained in:
sin365 2025-02-27 20:36:57 +08:00
parent 2088ffb8d9
commit facfbbcf73

View File

@ -51,6 +51,11 @@ public class UStoicGoose : MonoBehaviour
void Awake()
{
//关闭垂直同步
QualitySettings.vSyncCount = 0;
//设为60帧
Application.targetFrameRate = 60;
instance = this;
loggerHandler = new SGLogger();
graphicsHandler = this.gameObject.GetComponent<SGVideoPlayer>();
@ -365,6 +370,9 @@ public class UStoicGoose : MonoBehaviour
LoadBootstrap(emulatorHandler.Machine is WonderSwan ? Program.Configuration.General.BootstrapFile : Program.Configuration.General.BootstrapFileWSC);
LoadInternalEeprom();
//初始化音频
soundHandler.Initialize();
emulatorHandler.Startup();
SizeAndPositionWindow();