Add MacOS H/W Acceleration Support

This commit is contained in:
copecone committed 2026-08-07 22:11:58 +09:00
1 parent ced281f039
commit 2fe09c71ae
2 files changed
+15 -6

No files matched your search

+3
View File
@@ -21,6 +21,7 @@ namespace ADOFAIRenderer.Patch.Engine
}
[HarmonyPostfix]
// ReSharper disable once InconsistentNaming
public static void Postfix(AudioSource __result, string snd, double time, AudioMixerGroup group, float volume, int priority)
{
if (RenderManager.IsCapturingActive && RenderManager.Instance.Configuration.AudioConfig.RenderAudio && __result != null)
@@ -84,6 +85,7 @@ namespace ADOFAIRenderer.Patch.Engine
public static class AudioSourceSetScheduledEndTimePatch
{
[HarmonyPostfix]
// ReSharper disable once InconsistentNaming
public static void Postfix(AudioSource __instance, double time)
{
if (RenderManager.IsCapturingActive && RenderManager.Instance.Configuration.AudioConfig.RenderAudio)
@@ -101,6 +103,7 @@ namespace ADOFAIRenderer.Patch.Engine
public static class AudioSourceStopPatch
{
[HarmonyPostfix]
// ReSharper disable once InconsistentNaming
public static void Postfix(AudioSource __instance)
{
if (RenderManager.IsCapturingActive && RenderManager.Instance.Configuration.AudioConfig.RenderAudio)