From: <avn...@us...> - 2008-01-04 08:32:56
|
Revision: 2801 http://urakawa.svn.sourceforge.net/urakawa/?rev=2801&view=rev Author: avneeshsingh Date: 2008-01-04 00:32:54 -0800 (Fri, 04 Jan 2008) Log Message: ----------- Check for recording added to transport functions for avoiding conflict with Playback Modified Paths: -------------- trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs Modified: trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs =================================================================== --- trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs 2008-01-04 08:07:22 UTC (rev 2800) +++ trunk/urakawa/application/Obi/Obi/ProjectView/TransportBar.cs 2008-01-04 08:32:54 UTC (rev 2801) @@ -355,10 +355,10 @@ /// </summary> public void PrevSection() { - if (!IsInlineRecording) + if ( Enabled && mRecordingSession == null ) { mIsSerialPlaying = true; - if (Enabled) mCurrentPlaylist.NavigateToPreviousSection(); + mCurrentPlaylist.NavigateToPreviousSection(); if (mCurrentPlaylist.State != Obi.Audio.AudioPlayerState.Playing) mIsSerialPlaying = false; } } @@ -368,10 +368,10 @@ /// </summary> public void PrevPhrase() { - if (!IsInlineRecording) + if ( Enabled && mRecordingSession == null ) { if (mCurrentPlaylist.State == Obi.Audio.AudioPlayerState.Playing) mIsSerialPlaying = true; - if (Enabled) mCurrentPlaylist.NavigateToPreviousPhrase(); + mCurrentPlaylist.NavigateToPreviousPhrase(); if (mCurrentPlaylist.State != Obi.Audio.AudioPlayerState.Playing) mIsSerialPlaying = false; } } @@ -381,15 +381,15 @@ /// </summary> public void Rewind() { - if (Enabled) + if (Enabled && mRecordingSession == null) { - if (mCurrentPlaylist.Audioplayer.State == Obi.Audio.AudioPlayerState.Stopped) - Play(); + if (mCurrentPlaylist.Audioplayer.State == Obi.Audio.AudioPlayerState.Stopped) + Play(); - mIsSerialPlaying = true; - mCurrentPlaylist.Rewind(); - } - } + mIsSerialPlaying = true; + mCurrentPlaylist.Rewind(); + } + } /// <summary> /// checks if play selection should be initialised from PlayAll function @@ -672,7 +672,7 @@ /// </summary> public void FastForward() { - if (Enabled && !IsInlineRecording) + if (Enabled && mRecordingSession == null ) { if ( mCurrentPlaylist.Audioplayer.State == Obi.Audio.AudioPlayerState.Stopped ) Play(); @@ -1216,10 +1216,10 @@ public void PreviousPage() { - if ( mRecordingSession == null ) + if ( Enabled && mRecordingSession == null ) { mIsSerialPlaying = true; - if (Enabled) mCurrentPlaylist.NavigateToPreviousPage(); + mCurrentPlaylist.NavigateToPreviousPage(); if (mCurrentPlaylist.State != Obi.Audio.AudioPlayerState.Playing) mIsSerialPlaying = false; } } This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |