mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioPlaybackTestModule/src/SimpleSoundPlayer.cpp
changeset 31 8dfd592727cb
parent 12 5a06f39ad45b
--- a/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioPlaybackTestModule/src/SimpleSoundPlayer.cpp	Thu May 27 13:20:50 2010 +0300
+++ b/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioPlaybackTestModule/src/SimpleSoundPlayer.cpp	Wed Jun 23 18:47:10 2010 +0300
@@ -448,12 +448,14 @@
 			}
 
 
-
+			
+			TInt pwErr =0;		            
+			
 			if (playWindow)
 			{
 				iLogger.Log(_L("SetPlayWindow, start=[%d]"),startPosition.Int64());
 				iLogger.Log(_L("SetPlayWindow, end=[%d]"), endPosition.Int64() );
-				TInt pwErr = iMdaPlayer->SetPlayWindow(startPosition, endPosition);
+				pwErr = iMdaPlayer->SetPlayWindow(startPosition, endPosition);
 				iLogger.Log(_L("SetPlayWindow err=[%d]"), pwErr);
 				if (clearWindow)
 				{
@@ -462,7 +464,11 @@
 
 				}
 			}
-
+			if (iNegativePlayBackWindow && pwErr ) 
+			{
+			   iLogger.Log(_L("SetPlayWindow Expected Err for negative test case"));
+			   CActiveScheduler::Stop(); 
+			}
 			if (setBalance)
 			{
 				SetBalance(aBalance);