mmfenh/advancedaudiocontroller/tsrc/advancedaudiocontrollertestmodule/AudioPlaybackTestModule/src/SimpleSoundPlayer.cpp
branchRCL_3
changeset 30 ab526b8cacfb
parent 7 709f89d8c047
equal deleted inserted replaced
24:bea5e7625e42 30:ab526b8cacfb
   446 					}
   446 					}
   447 				}
   447 				}
   448 			}
   448 			}
   449 
   449 
   450 
   450 
   451 
   451 			
       
   452 			TInt pwErr =0;		            
       
   453 			
   452 			if (playWindow)
   454 			if (playWindow)
   453 			{
   455 			{
   454 				iLogger.Log(_L("SetPlayWindow, start=[%d]"),startPosition.Int64());
   456 				iLogger.Log(_L("SetPlayWindow, start=[%d]"),startPosition.Int64());
   455 				iLogger.Log(_L("SetPlayWindow, end=[%d]"), endPosition.Int64() );
   457 				iLogger.Log(_L("SetPlayWindow, end=[%d]"), endPosition.Int64() );
   456 				TInt pwErr = iMdaPlayer->SetPlayWindow(startPosition, endPosition);
   458 				pwErr = iMdaPlayer->SetPlayWindow(startPosition, endPosition);
   457 				iLogger.Log(_L("SetPlayWindow err=[%d]"), pwErr);
   459 				iLogger.Log(_L("SetPlayWindow err=[%d]"), pwErr);
   458 				if (clearWindow)
   460 				if (clearWindow)
   459 				{
   461 				{
   460 					iLogger.Log(_L("ClearPlayWindow"));
   462 					iLogger.Log(_L("ClearPlayWindow"));
   461 					iMdaPlayer->ClearPlayWindow();
   463 					iMdaPlayer->ClearPlayWindow();
   462 
   464 
   463 				}
   465 				}
   464 			}
   466 			}
   465 
   467 			if (iNegativePlayBackWindow && pwErr ) 
       
   468 			{
       
   469 			   iLogger.Log(_L("SetPlayWindow Expected Err for negative test case"));
       
   470 			   CActiveScheduler::Stop(); 
       
   471 			}
   466 			if (setBalance)
   472 			if (setBalance)
   467 			{
   473 			{
   468 				SetBalance(aBalance);
   474 				SetBalance(aBalance);
   469 			}
   475 			}
   470 
   476