// Token: 0x0600371E RID: 14110 RVA: 0x0011A6A4 File Offset: 0x00118AA4 private void Release() { if (!this.audioSource) { return; } this.audioSource.spatialBlend = this.panLevel; this.audioSource.spread = this.spread; if (this.context != -1) { OSPManager.ReleaseContext(base.GetInstanceID(), this.context); this.context = -1; } }
/// <summary> /// Reset cached variables and free the sound context back to OSPManger /// </summary> private void Release() { if (!audioSource) { return; } // Reset all audio variables that were changed during play //audioSource.spatialBlend = panLevel; //audioSource.spread = spread; // Put context back into pool if (context != sNoContext) { OSPManager.ReleaseContext(GetInstanceID(), context); context = sNoContext; } }
/// <summary> /// Reset cached variables and free the sound context back to OSPManger /// </summary> private void Release() { if (!audioSource) { return; } // Reset all audio variables that were changed during play #if (!UNITY5) audioSource.spatialBlend = panLevel; #else audioSource.spatialBlend = panLevel; #endif audioSource.spread = spread; // Put context back into pool if (context != sNoContext) { OSPManager.ReleaseContext(context); context = sNoContext; } }