Assets/Photon/PhotonVoice/Code/Recorder.cs
/// <summary>
/// Restarts recording if something has changed that requires this.
/// </summary>
/// <param name="force">Set to true if you want to restart even if this is not required (RequiresRestart = false)</param>
Restarts recording if something has changed that requires this.
Restarts recording if something has changed that requires this .
public void RestartRecording(bool force = false)
        {
            if (!force && !this.RequiresRestart)
            {
                if (this.Logger.IsWarningEnabled)
                {
                    this.Logger.LogWarning("Recorder does not require restart.");
                }
                return;
            }
            if (this.Logger.IsDebugEnabled)
            {
                this.Logger.LogDebug("Restarting recording, RequiresRestart?={0} forcedRestart?={1}", this.RequiresRestart, force);
            }
            this.StopRecording();
            this.StartRecording();
        }
public void RestartRecording ( bool force = false ) { if ( ! force && ! this . RequiresRestart ) { if ( this . Logger . IsWarningEnabled ) { this . Logger . LogWarning ( " " ) ; } return ; } if ( this . Logger . IsDebugEnabled ) { this . Logger . LogDebug ( " " , this . RequiresRestart , force ) ; } this . StopRecording ( ) ; this . StartRecording ( ) ; }
Restarts recording if something has changed that requires this.
Restarts recording if something has changed that requires this .
force
bool
Set to true if you want to restart even if this is not required (RequiresRestart = false)
Set to true if you want to restart even if this is not required ( RequiresRestart = false )