예제 #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;
    }