public SE Add(string fileFullPath) { SE _se = null; _se = new SE(fileFullPath); this.SEClipsCache [NextIndex] = _se; NextIndex = (NextIndex + 1) % SEClipsCache.Length; return(_se); }
public SE Add(AudioClip audioclip) { SE _se = null; _se = new SE(audioclip); this.SEClipsCache [NextIndex] = _se; NextIndex = (NextIndex + 1) % SEClipsCache.Length; return(_se); }
public SE Add(string fileFullPath) { SE _se = null; _se = new SE(fileFullPath); // _se.SEClip.LoadAudioData (); // if ( this.SEClipsCache [NextIndex]!= null && this.SEClipsCache [NextIndex].SEClip != null) // this.SEClipsCache [NextIndex].SEClip.UnloadAudioData (); this.SEClipsCache [NextIndex] = _se; NextIndex = (NextIndex + 1) % SEClipsCache.Length; return(_se); }