Changeset 5834


Ignore:
Timestamp:
03/27/14 14:29:47 (6 years ago)
Author:
avneesh-singh
Message:

checks applied in stop recording and pause recording to allow stopping of MonitorContinuously? without expecting assets

File:
1 edited

Legend:

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

    r5831 r5834  
    15281528             
    15291529            // update recorded phrases with audio assets 
    1530             UpdateRecordedPhrasesAlongWithPostRecordingOperations(listOfRecordedPhrases, ref firstRecordedPage); 
    1531              
    1532             //Workaround to force phrases to show if they become invisible on stopping recording 
    1533             mView.PostRecording_RecreateInvisibleRecordingPhrases(mRecordingSection, mRecordingInitPhraseIndex, mRecordingSession.RecordedAudio.Count); 
     1530            if (mRecordingSection != null) 
     1531            { 
     1532                UpdateRecordedPhrasesAlongWithPostRecordingOperations(listOfRecordedPhrases, ref firstRecordedPage); 
     1533 
     1534                //Workaround to force phrases to show if they become invisible on stopping recording 
     1535                mView.PostRecording_RecreateInvisibleRecordingPhrases(mRecordingSection, mRecordingInitPhraseIndex, mRecordingSession.RecordedAudio.Count); 
     1536            } 
    15341537        } 
    15351538        catch (System.Exception ex) 
     
    31713174                    { 
    31723175                    mRecordingSession.Stop (); 
    3173                      
    3174                      
    3175  
    3176                     // update phrases with audio assets 
    3177                     UpdateRecordedPhrasesAlongWithPostRecordingOperations(listOfRecordedPhrases,ref firstRecordedPage); 
    3178  
    3179                     //Workaround to force phrases to show if they become invisible on stopping recording 
    3180                     mView.PostRecording_RecreateInvisibleRecordingPhrases(mRecordingSection, mRecordingInitPhraseIndex, mRecordingSession.RecordedAudio.Count); 
    3181                     EmptyNode lastRecordedPhrase = mRecordingSection.PhraseChildCount >0? mRecordingSection.PhraseChild(mRecordingInitPhraseIndex + mRecordingSession.RecordedAudio.Count - 1):null; 
    3182                     if (!wasMonitoring && lastRecordedPhrase != null && lastRecordedPhrase.IsRooted) mView.SelectFromTransportBar ( lastRecordedPhrase, null ); 
    3183  
     3176 
     3177 
     3178                    if (mRecordingSection != null) 
     3179                    { 
     3180                        // update phrases with audio assets 
     3181                        UpdateRecordedPhrasesAlongWithPostRecordingOperations(listOfRecordedPhrases, ref firstRecordedPage); 
     3182 
     3183                        //Workaround to force phrases to show if they become invisible on stopping recording 
     3184                        mView.PostRecording_RecreateInvisibleRecordingPhrases(mRecordingSection, mRecordingInitPhraseIndex, mRecordingSession.RecordedAudio.Count); 
     3185                        EmptyNode lastRecordedPhrase = mRecordingSection.PhraseChildCount > 0 ? mRecordingSection.PhraseChild(mRecordingInitPhraseIndex + mRecordingSession.RecordedAudio.Count - 1) : null; 
     3186                        if (!wasMonitoring && lastRecordedPhrase != null && lastRecordedPhrase.IsRooted) mView.SelectFromTransportBar(lastRecordedPhrase, null); 
     3187                    } 
    31843188                     
    31853189 
     
    40324036                if (value && mView.ObiForm != null ) 
    40334037                { 
    4034                     System.Media.SystemSounds.Asterisk.Play(); 
     4038                     
    40354039                    m_MonitorContinuously = value; 
    40364040                    StartMonitorContinuously(); 
Note: See TracChangeset for help on using the changeset viewer.