mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/amraudioplaycontroller/Src/AMRAudioPlayControllerPlugin.cpp
branchRCL_3
changeset 46 0ac9a5310753
parent 45 095bea5f582e
child 54 53984cc2f70a
equal deleted inserted replaced
45:095bea5f582e 46:0ac9a5310753
    49 //
    49 //
    50 void CAMRAudioPlayControllerPlugin::ConstructL()
    50 void CAMRAudioPlayControllerPlugin::ConstructL()
    51     {
    51     {
    52     CAdvancedAudioPlayController::ConstructL();
    52     CAdvancedAudioPlayController::ConstructL();
    53 
    53 
    54 	  iAudioResource = CAMRAudioPlayControllerResource::NewL();
    54 	iAudioResource = CAMRAudioPlayControllerResource::NewL();
    55     TAapProperties aapProperties = iAudioResource->PropertiesL();
    55     TAapProperties aapProperties = iAudioResource->PropertiesL();
    56     iSharedBufferMaxNum = aapProperties.iSharedBufferMaxNum;
    56     iSharedBufferMaxNum = aapProperties.iSharedBufferMaxNum;
    57     iSharedBufferMaxSize = aapProperties.iSharedBufferMaxSize;
    57     iSharedBufferMaxSize = aapProperties.iSharedBufferMaxSize;
    58     iMetaDataSupport = aapProperties.iMetaDataSupport;
    58     iMetaDataSupport = aapProperties.iMetaDataSupport;
    59   	iAudioUtility = CAMRAudioControllerUtility::NewL();
    59     iSharedBufferMaxSizeForNonSeekableSrc = aapProperties.iSharedBufferMaxSizeForNonSeekableSrc;
    60 	  iDecoderBuilder = CAMRAudioPlayControllerDecoderBuilder::NewL();
    60 	iAudioUtility = CAMRAudioControllerUtility::NewL();
       
    61 	iDecoderBuilder = CAMRAudioPlayControllerDecoderBuilder::NewL();
    61     }
    62     }
    62 
    63 
    63 // -----------------------------------------------------------------------------
    64 // -----------------------------------------------------------------------------
    64 // CAMRAudioPlayControllerPlugin::NewL
    65 // CAMRAudioPlayControllerPlugin::NewL
    65 // -----------------------------------------------------------------------------
    66 // -----------------------------------------------------------------------------
   101 // -----------------------------------------------------------------------------
   102 // -----------------------------------------------------------------------------
   102 //
   103 //
   103 void CAMRAudioPlayControllerPlugin::DoAddDataSourceL()
   104 void CAMRAudioPlayControllerPlugin::DoAddDataSourceL()
   104     {
   105     {
   105     DP0(_L("CAMRAudioPlayControllerPlugin::DoAddDataSourceL"));
   106     DP0(_L("CAMRAudioPlayControllerPlugin::DoAddDataSourceL"));
       
   107         // ou1cimx1#205863
       
   108     if (iSourceType != KUidMmfFileSource) 
       
   109     	{
       
   110 	    DP0(_L("CAMRAudioPlayControllerPlugin::DoAddDataSourceL not file source"));        
       
   111 	    if (iSharedBufferMaxNum <= 2)
       
   112 	        {
       
   113 	        	iSharedBufferMaxNum = 3;
       
   114 	        }
       
   115 		 iSharedBufferMaxSize = iSharedBufferMaxSizeForNonSeekableSrc;
       
   116 	    DP2(_L("CAMRAudioPlayControllerPlugin::DoAddDataSourceL new iSharedBufferMaxNum[%d] iSharedBufferMaxSize[%d]"), iSharedBufferMaxNum, iSharedBufferMaxSize);
       
   117     	}
       
   118 
   106     }
   119     }
   107 
   120 
   108 // -----------------------------------------------------------------------------
   121 // -----------------------------------------------------------------------------
   109 // CAMRAudioPlayControllerPlugin::DoAddDataSinkL
   122 // CAMRAudioPlayControllerPlugin::DoAddDataSinkL
   110 // -----------------------------------------------------------------------------
   123 // -----------------------------------------------------------------------------