1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/os/mm/mmplugins/mmfwplugins/MMPFiles/Plugin/OggPlayController.mmp Fri Jun 15 03:10:57 2012 +0200
1.3 @@ -0,0 +1,55 @@
1.4 +// Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
1.5 +// All rights reserved.
1.6 +// This component and the accompanying materials are made available
1.7 +// under the terms of "Eclipse Public License v1.0"
1.8 +// which accompanies this distribution, and is available
1.9 +// at the URL "http://www.eclipse.org/legal/epl-v10.html".
1.10 +//
1.11 +// Initial Contributors:
1.12 +// Nokia Corporation - initial contribution.
1.13 +//
1.14 +// Contributors:
1.15 +//
1.16 +// Description:
1.17 +//
1.18 +
1.19 +TARGET oggplaycontroller.dll
1.20 +CAPABILITY ALL -TCB
1.21 +TARGETTYPE PLUGIN
1.22 +
1.23 +// ECom Dll recognition UID followed by the unique UID for this dll
1.24 +UID 0x10009D8D 0x01004303
1.25 +VENDORID 0x70000001
1.26 +
1.27 +SOURCEPATH ../../src/Plugin/Controller/Audio/OggVorbis/OggPlayController
1.28 +SOURCE OggPlayController.cpp
1.29 +SOURCE OggDecode.cpp
1.30 +
1.31 +USERINCLUDE ../../src/Plugin/Controller/Audio/OggVorbis/OggPlayController
1.32 +USERINCLUDE ../../src/Plugin/Controller/Audio/OggVorbis/oggutils/inc
1.33 +
1.34 +OS_LAYER_SYSTEMINCLUDE_SYMBIAN
1.35 +OS_LAYER_ESTLIB_SYSTEMINCLUDE
1.36 +
1.37 +START RESOURCE OggPlayController.RSS
1.38 +TARGET oggplaycontroller.rsc
1.39 +END
1.40 +
1.41 +LIBRARY euser.lib
1.42 +LIBRARY ecom.lib
1.43 +LIBRARY estlib.lib
1.44 +LIBRARY mmfdevsound.lib
1.45 +LIBRARY mmfserverbaseclasses.lib
1.46 +LIBRARY mmfcontrollerframework.lib
1.47 +LIBRARY mmfstandardcustomcommands.lib
1.48 +LIBRARY oggvorbisintutil.lib
1.49 +
1.50 +// OggVorbis C libraries are not alloc safe. So we create a separate heap for C library calls with enough space well before
1.51 +// the codec starts processing and we switch to the new heap before making calls to the methods in these libraries.
1.52 +// Chunk and Heap sizes are taken such a way that we have enough space on the new heap to avoid OOM situations to the
1.53 +// maximum extent possible. Also the malloc, calloc and realloc functions in the C libraries are modified to leave with KErrMemory
1.54 +// when the allocation fails. We TRAP the error and cleanup the new heap we had created. This way the library calls are made alloc safe.
1.55 +// SYMBIAN_SEP_HEAP is provided to enable/disable this separate heap mechanism.
1.56 +MACRO SYMBIAN_SEP_HEAP
1.57 +
1.58 +SMPSAFE