Changeset 5809


Ignore:
Timestamp:
03/18/14 09:29:13 (6 years ago)
Author:
rohit_tandon
Message:

Backward navigation with Keyboard shortcut E when player is in stopped state will parse between phrases.

File:
1 edited

Legend:

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

    r5791 r5809  
    25862586                { 
    25872587                    double time = ((AudioSelection)mView.Selection).AudioRange.CursorTime; 
    2588                     time = time - elapseBackInterval >= 0 ? time - elapseBackInterval : 0; 
     2588                    if (time < 1 && mView.Selection.Node.PrecedingNode is PhraseNode) 
     2589                    { 
     2590                        ObiNode preceedingNode = mView.Selection.Node.PrecedingNode; 
     2591                        mView.Selection = new NodeSelection(preceedingNode, mView.Selection.Control); 
     2592                        AudioRange range = new AudioRange(mView.Selection.Node.Duration); 
     2593                        mView.Selection = new AudioSelection((PhraseNode)mView.Selection.Node, mView.Selection.Control, range); 
     2594                        time = ((AudioSelection)mView.Selection).AudioRange.CursorTime;                         
     2595                    } 
     2596                    else 
     2597                    { 
     2598                        time = time - elapseBackInterval >= 0 ? time - elapseBackInterval : 0; 
     2599                    } 
    25892600                    mView.Selection = new AudioSelection((PhraseNode)mView.Selection.Node, mView.Selection.Control, 
    25902601                        new AudioRange(time)); 
Note: See TracChangeset for help on using the changeset viewer.