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 // ----------------------------------------------------------------------------- |