mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/amraudioplaycontroller/Src/AMRAudioPlayControllerPlugin.cpp
--- a/mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/amraudioplaycontroller/Src/AMRAudioPlayControllerPlugin.cpp Tue Aug 31 15:43:02 2010 +0300
+++ b/mmfenh/advancedaudiocontroller/audiocontrollerpluginsvariant/amraudioplaycontroller/Src/AMRAudioPlayControllerPlugin.cpp Wed Sep 01 12:23:00 2010 +0100
@@ -51,13 +51,14 @@
{
CAdvancedAudioPlayController::ConstructL();
- iAudioResource = CAMRAudioPlayControllerResource::NewL();
+ iAudioResource = CAMRAudioPlayControllerResource::NewL();
TAapProperties aapProperties = iAudioResource->PropertiesL();
iSharedBufferMaxNum = aapProperties.iSharedBufferMaxNum;
iSharedBufferMaxSize = aapProperties.iSharedBufferMaxSize;
iMetaDataSupport = aapProperties.iMetaDataSupport;
- iAudioUtility = CAMRAudioControllerUtility::NewL();
- iDecoderBuilder = CAMRAudioPlayControllerDecoderBuilder::NewL();
+ iSharedBufferMaxSizeForNonSeekableSrc = aapProperties.iSharedBufferMaxSizeForNonSeekableSrc;
+ iAudioUtility = CAMRAudioControllerUtility::NewL();
+ iDecoderBuilder = CAMRAudioPlayControllerDecoderBuilder::NewL();
}
// -----------------------------------------------------------------------------
@@ -103,6 +104,18 @@
void CAMRAudioPlayControllerPlugin::DoAddDataSourceL()
{
DP0(_L("CAMRAudioPlayControllerPlugin::DoAddDataSourceL"));
+ // ou1cimx1#205863
+ if (iSourceType != KUidMmfFileSource)
+ {
+ DP0(_L("CAMRAudioPlayControllerPlugin::DoAddDataSourceL not file source"));
+ if (iSharedBufferMaxNum <= 2)
+ {
+ iSharedBufferMaxNum = 3;
+ }
+ iSharedBufferMaxSize = iSharedBufferMaxSizeForNonSeekableSrc;
+ DP2(_L("CAMRAudioPlayControllerPlugin::DoAddDataSourceL new iSharedBufferMaxNum[%d] iSharedBufferMaxSize[%d]"), iSharedBufferMaxNum, iSharedBufferMaxSize);
+ }
+
}
// -----------------------------------------------------------------------------