示例#1
0
    /// <summary>
    /// Clones a sound
    /// </summary>
    OTSound Clone()
    {
        OTSound s = new OTSound(_name);

        s.Count(_count);
        s.Pan(_pan);
        s.Pitch(_pitch);
        s.Delay(_delay);
        s.Volume(_volume);
        s.Duration(_duration);
        s.FadeIn(fadeIn);
        s.FadeOut(fadeOut);
        return(s);
    }
 /// <summary>
 /// Clones a sound
 /// </summary>
 OTSound Clone()
 {
     OTSound s = new OTSound(_name);
     s.Count(_count);
     s.Pan(_pan);
     s.Pitch(_pitch);
     s.Delay(_delay);
     s.Volume(_volume);
     s.Duration(_duration);
     s.FadeIn(fadeIn);
     s.FadeOut(fadeOut);
     return s;
 }