示例#1
0
    /**
     * Stops the currently playing sound
     */
    public void Stop()
    {
        if (_audioPlayer != null)
        {
            _audioPlayer.Destroy();
            _audioPlayer = null;
        }

        if (_original != null)
        {
            _params.CopyFrom(_original);
            _original = null;
        }
    }
示例#2
0
    // Copying methods

    /**
     * Returns a copy of this SfxrParams with all settings duplicated
     * @return  A copy of this SfxrParams
     */
    public SfxrParams Clone()
    {
        SfxrParams outp = new SfxrParams();

        outp.CopyFrom(this);

        return(outp);
    }
示例#3
0
文件: SfxrParams.cs 项目: BiDuc/usfxr
    // Copying methods
    /**
     * Returns a copy of this SfxrParams with all settings duplicated
     * @return	A copy of this SfxrParams
     */
    public SfxrParams Clone()
    {
        SfxrParams outp = new SfxrParams();
        outp.CopyFrom(this);

        return outp;
    }