Example #1
0
        /// <summary>
        /// Unload all audio clips from the runtime cache
        /// </summary>
        public void UnloadAll()
        {
            // Failed
            TTSClipData[] clips = RuntimeCacheHandler?.GetClips();
            if (clips == null)
            {
                return;
            }

            // Copy array
            TTSClipData[] copy = new TTSClipData[clips.Length];
            clips.CopyTo(copy, 0);

            // Unload all clips
            foreach (var clip in copy)
            {
                Unload(clip);
            }
        }
Example #2
0
 /// <summary>
 /// Obtain all clips from the runtime cache, if applicable
 /// </summary>
 public TTSClipData[] GetAllRuntimeCachedClips() => RuntimeCacheHandler?.GetClips();