os/mm/mmplugins/mmfwplugins/MMPFiles/Plugin/OggRecordController.mmp
author sl
Tue, 10 Jun 2014 14:32:02 +0200
changeset 1 260cb5ec6c19
permissions -rw-r--r--
Update contrib.
     1 // Copyright (c) 2005-2009 Nokia Corporation and/or its subsidiary(-ies).
     2 // All rights reserved.
     3 // This component and the accompanying materials are made available
     4 // under the terms of "Eclipse Public License v1.0"
     5 // which accompanies this distribution, and is available
     6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7 //
     8 // Initial Contributors:
     9 // Nokia Corporation - initial contribution.
    10 //
    11 // Contributors:
    12 //
    13 // Description:
    14 //
    15 
    16 TARGET oggrecordcontroller.dll
    17 CAPABILITY ALL -TCB
    18 TARGETTYPE PLUGIN
    19 
    20 
    21 // ECom Dll recognition UID followed by the unique UID for this dll
    22 UID		0x10009D8D 0x10273799
    23 VENDORID 0x70000001
    24 
    25 SOURCEPATH	../../src/Plugin/Controller/Audio/OggVorbis/OggRecordController
    26 SOURCE		OggRecordController.cpp
    27 SOURCE		OggEncode.cpp
    28 
    29 USERINCLUDE	../../src/Plugin/Controller/Audio/OggVorbis/OggRecordController
    30 USERINCLUDE     ../../src/Plugin/Controller/Audio/OggVorbis/oggutils/inc
    31 
    32 OS_LAYER_SYSTEMINCLUDE_SYMBIAN
    33 OS_LAYER_ESTLIB_SYSTEMINCLUDE
    34 
    35 START RESOURCE OggRecordController.RSS
    36 TARGET oggrecordcontroller.rsc
    37 END
    38 
    39 LIBRARY		euser.lib 
    40 LIBRARY		ecom.lib 
    41 LIBRARY		estlib.lib 
    42 LIBRARY 	mmfdevsound.lib 
    43 LIBRARY		mmfserverbaseclasses.lib 
    44 LIBRARY		mmfcontrollerframework.lib 
    45 LIBRARY		mmfstandardcustomcommands.lib
    46 LIBRARY		oggvorbisfloatutil.lib
    47 
    48 // OggVorbis C libraries are not alloc safe. So we create a separate heap for C library calls with enough space well before 
    49 // the codec starts processing and we switch to the new heap before making calls to the methods in these libraries. 
    50 // Chunk and Heap sizes are taken such a way that we have enough space on the new heap to avoid OOM situations to the 
    51 // maximum extent possible. Also the malloc, calloc and realloc functions in the C libraries are modified to leave with KErrMemory 
    52 // 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.
    53 // SYMBIAN_SEP_HEAP is provided to enable/disable this separate heap mechanism.
    54 MACRO SYMBIAN_SEP_HEAP
    55 
    56 SMPSAFE