FSO.HIT.HITThread.KillVocals C# (CSharp) Method

KillVocals() public method

Kills all playing sounds.
public KillVocals ( ) : void
return void
        public void KillVocals()
        {
            for (int i = 0; i < Notes.Count; i++)
            {
                if (NoteActive(i))
                {
                    Notes[i].instance.Stop();
                    Notes[i].instance.Dispose();
                }
            }
        }

Usage Example

Ejemplo n.º 1
0
        /// <summary>
        /// Kill an actor's vocals, given a constant ID.
        /// </summary>
        public static HITResult SeqGroupKill(HITThread thread)
        {
            var src = thread.ReadByte();

            if (src == (byte)HITPerson.Instance)
            {
                thread.KillVocals();
            }
            else
            {
                //TODO: Implement system for keeping track of which object created a thread
                //      and kill that thread's sounds (src == ObjectID).
            }

            return(HITResult.CONTINUE);
        }
All Usage Examples Of FSO.HIT.HITThread::KillVocals