示例#1
0
        // Copying methods

        /// <summary>
        /// Returns a copy of this SfxrParams with all settings duplicated
        /// </summary>
        /// <returns>A copy of this SfxrParams</returns>
        public SfxrParams Clone()
        {
            SfxrParams outp = new SfxrParams();

            outp.CopyFrom(this);

            return(outp);
        }
示例#2
0
        /// <summary>
        /// Stops the currently playing sound
        /// </summary>
        public void Stop()
        {
            if (_audioPlayer != null)
            {
                _audioPlayer.Stop();
                _audioPlayer.Dispose();
                _audioPlayer = null;
            }

            if (_original != null)
            {
                _params.CopyFrom(_original);
                _original = null;
            }
        }