Changeset 5871


Ignore:
Timestamp:
04/08/14 11:19:42 (6 years ago)
Author:
avneesh-singh
Message:

special case for record button: record over subsequent & preview before recording is allowed in playing state also

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Obi/Obi/ProjectView/TransportBar.cs

    r5870 r5871  
    923923                mPlayButton.Enabled = CanPlay || CanResumePlayback; 
    924924                mFastPlayRateCombobox.Enabled = !IsRecorderActive; 
    925                 mRecordButton.Enabled = CanRecord || CanResumeRecording; 
     925                mRecordButton.Enabled = CanRecord || CanResumeRecording 
     926                    || (CurrentState == State.Playing && (mView.ObiForm.Settings.Audio_UseRecordBtnToRecordOverSubsequentAudio || mView.ObiForm.Settings.Recording_PreviewBeforeStarting)); 
    926927                if (IsPlaying || IsRecorderActive) 
    927928                { 
     
    16991700            if (mView.ObiForm.Settings.RecordDirectlyWithRecordButton && CurrentState != State.Monitoring) //if monitoring go through the traditional way 
    17001701            { 
    1701                 if (mView.ObiForm.Settings.Audio_UseRecordBtnToRecordOverSubsequentAudio) 
    1702                 { 
     1702                if (mView.ObiForm.Settings.Recording_PreviewBeforeStarting) 
     1703                { 
     1704                    StartRecordingDirectly(mView.ObiForm.Settings.Recording_PreviewBeforeStarting); 
     1705                } 
     1706                else 
     1707                { 
     1708                    if (CurrentState == State.Playing) Pause(); 
    17031709                    RecordOverSubsequentPhrases(); 
    17041710                } 
    1705                 else 
    1706                 { 
    1707                     StartRecordingDirectly(mView.ObiForm.Settings.Recording_PreviewBeforeStarting); 
    1708                 } 
     1711                 
    17091712            } 
    17101713            else 
     
    31253128            } 
    31263129 
    3127             if (mView.ObiForm.Settings.Recording_ReplaceAfterCursor && CurrentState == State.Playing) 
     3130            if (isPreviewBeforeRecording && CurrentState == State.Playing) 
    31283131            { 
    31293132                Pause(); 
     
    38063809        public void RecordOverSubsequentPhrases() 
    38073810        { 
    3808             if (CanRecord) StartRecordingDirectly_Internal(true); 
     3811            if (CanRecord ) 
     3812            { 
     3813                StartRecordingDirectly_Internal(true); 
     3814            } 
    38093815        } 
    38103816 
Note: See TracChangeset for help on using the changeset viewer.