mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioPlaybackTestModule/src/SimpleSoundPlayer.cpp
changeset 21 2ed61feeead6
parent 12 5a06f39ad45b
--- a/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioPlaybackTestModule/src/SimpleSoundPlayer.cpp	Fri May 14 18:19:45 2010 -0500
+++ b/mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioPlaybackTestModule/src/SimpleSoundPlayer.cpp	Fri May 28 19:26:28 2010 -0500
@@ -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);