From 6ada0e7de7efc766512c14ac946f06fc95ecc3a5 Mon Sep 17 00:00:00 2001 From: ALEXTANG <574809918@qq.com> Date: Fri, 1 Dec 2023 17:18:13 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=B5=8B=E8=AF=95=E6=97=A5?= =?UTF-8?q?=E5=BF=97?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../TEngine/Runtime/Modules/AudioModule/AudioAgent.cs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/UnityProject/Assets/TEngine/Runtime/Modules/AudioModule/AudioAgent.cs b/UnityProject/Assets/TEngine/Runtime/Modules/AudioModule/AudioAgent.cs index 1d8f6b87..33a5e20a 100644 --- a/UnityProject/Assets/TEngine/Runtime/Modules/AudioModule/AudioAgent.cs +++ b/UnityProject/Assets/TEngine/Runtime/Modules/AudioModule/AudioAgent.cs @@ -30,10 +30,6 @@ namespace TEngine AudioData ret = MemoryPool.Acquire(); ret.AssetOperationHandle = assetOperationHandle; ret.InPool = inPool; - if (!ret.InPool) - { - Log.Error("Is not In Pool"); - } ret.InitFromPool(); return ret; } @@ -285,7 +281,7 @@ namespace TEngine } else { - _pendingLoad = new LoadRequest { Path = path, BAsync = bAsync, BInPool = bInPool}; + _pendingLoad = new LoadRequest { Path = path, BAsync = bAsync, BInPool = bInPool }; if (_audioAgentRuntimeState == AudioAgentRuntimeState.Playing) { @@ -325,7 +321,7 @@ namespace TEngine _source.Pause(); } } - + /// /// 取消暂停音频代理辅助器。 ///