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(); } } - + /// /// 取消暂停音频代理辅助器。 ///