mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/DataSourceAdapter/Src/DataSourceAdapter.cpp
branchRCL_3
changeset 7 709f89d8c047
parent 0 71ca22bcf22a
child 48 a493a607b5bf
equal deleted inserted replaced
3:4f62049db6ac 7:709f89d8c047
    36 	{
    36 	{
    37     iPosSeekable = EFalse;
    37     iPosSeekable = EFalse;
    38     iTimeSeekable = EFalse;
    38     iTimeSeekable = EFalse;
    39     iDataSource = NULL;
    39     iDataSource = NULL;
    40     iIsProtected = EFalse;
    40     iIsProtected = EFalse;
       
    41     iIsLocalPlayback = EFalse;
    41     }
    42     }
    42 
    43 
    43 // -----------------------------------------------------------------------------
    44 // -----------------------------------------------------------------------------
    44 // CDataSourceAdapter::ConstructL
    45 // CDataSourceAdapter::ConstructL
    45 // Symbian 2nd phase constructor can leave.
    46 // Symbian 2nd phase constructor can leave.
   107         
   108         
   108         iMMDataSource->GetSeekingSupport(iPosSeekable);
   109         iMMDataSource->GetSeekingSupport(iPosSeekable);
   109         }
   110         }
   110 	else if ((iSourceType == KUidMmfFileSource) || (iSourceType == KOldProgDLSourceUid))
   111 	else if ((iSourceType == KUidMmfFileSource) || (iSourceType == KOldProgDLSourceUid))
   111     	{
   112     	{
       
   113     	if (iSourceType == KUidMmfFileSource) 
       
   114 		{
       
   115 	    	iIsLocalPlayback = ETrue;
       
   116 		}
   112     	iPosSeekable = ETrue;
   117     	iPosSeekable = ETrue;
   113     	iDataSource->SourcePrimeL();
   118     	iDataSource->SourcePrimeL();
   114    		iIsProtected = static_cast<CMMFFile*>(iDataSource)->IsProtectedL();
   119    		iIsProtected = static_cast<CMMFFile*>(iDataSource)->IsProtectedL();
   115 		iClip = static_cast<CMMFClip*>(iDataSource);
   120 		iClip = static_cast<CMMFClip*>(iDataSource);
   116 		iClip->SourceThreadLogon(*aAsyncEventHandler);
   121 		iClip->SourceThreadLogon(*aAsyncEventHandler);
   398 		{
   403 		{
   399 		iMMDataSource->Event(aEvent);
   404 		iMMDataSource->Event(aEvent);
   400 		}
   405 		}
   401 	}
   406 	}
   402 
   407 
       
   408 EXPORT_C TBool CDataSourceAdapter::IsLocalPlayback()
       
   409 	{
       
   410 	DP1(_L("CDataSourceAdapter::iIsLocalPlayback[%d]"), iIsLocalPlayback);
       
   411 	return iIsLocalPlayback;
       
   412 	}
   403 // -----------------------------------------------------------------------------
   413 // -----------------------------------------------------------------------------
   404 // CDataSourceAdapter::CAsyncProxyFillBuffer
   414 // CDataSourceAdapter::CAsyncProxyFillBuffer
   405 // -----------------------------------------------------------------------------
   415 // -----------------------------------------------------------------------------
   406 
   416 
   407 // -----------------------------------------------------------------------------
   417 // -----------------------------------------------------------------------------