mmdevicefw/mdf/mmpfiles/audio/mdasoundadapter.mmp
changeset 0 40261b775718
child 24 2672ba96448e
equal deleted inserted replaced
-1:000000000000 0:40261b775718
       
     1 // Copyright (c) 2007-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          mdasoundadapter.dll
       
    17 CAPABILITY      ALL -TCB
       
    18 TARGETTYPE      DLL
       
    19 UID             0x1000008d 0x102833D6
       
    20 VENDORID        0x70000001
       
    21 
       
    22 //If this macro is enabled, BytesPlayed() uses iBytesPlayed instead of RSoundSc's BytesTransferred()
       
    23 MACRO SYMBIAN_SOUNDADAPTER_BYTESPLAYED
       
    24 
       
    25 // Enable this for debug output
       
    26 //MACRO SYMBIAN_SOUNDADAPTER_DEBUG
       
    27 
       
    28 //Normally on SetFormat we try and handle failure. If this macro is enabled, skip first step 
       
    29 //Only allow the "CD" rates of 44100, 22050 and 11025 whatever is actually supported.
       
    30 //Assumes one is supported.
       
    31 //[Play only - for debugging]
       
    32 //MACRO SYMBIAN_SOUNDADAPTER_FORCECDRATES
       
    33 
       
    34 //Similar to SYMBIAN_SOUNDADAPTER_FORCECDRATES, only play stereo. Assumes stereo is supported
       
    35 //[Play only - for debugging]
       
    36 // MACRO SYMBIAN_SOUNDADAPTER_FORCESTEREO
       
    37 
       
    38 // For development and debugging, we don't actually resample on stereo even if we should. Instead
       
    39 // just copy data, preserving the size of the input buffer.
       
    40 MACRO SYMBIAN_SKIP_RESAMPLE_ON_RECORD
       
    41 
       
    42 //If this is enabled devsound adaptor will generate -6 errors if the buffers played are not of length divisible by 4.
       
    43 //This reflects some hardware.
       
    44 //MACRO SYMBIAN_FORCE_32BIT_LENGTHS
       
    45 
       
    46 OS_LAYER_SYSTEMINCLUDE_SYMBIAN
       
    47 
       
    48 USERINCLUDE		../../src/audio/mdasoundadapter
       
    49 USERINCLUDE		../../../../mmlibs/mmfw/inc // for rateconverter.h
       
    50 
       
    51 SOURCEPATH		../../src/audio/mdasoundadapter
       
    52 SOURCE			mdasoundadapter.cpp
       
    53 SOURCE			mdasoundadapterbody.cpp
       
    54 SOURCE			mdasoundadapterconsts.cpp
       
    55 
       
    56 LIBRARY			euser.lib
       
    57 LIBRARY			hal.lib //needed only when SYMBIAN_SOUNDADAPTER_BYTESPLAYED is enabled
       
    58 LIBRARY			audioutils.lib // for rate converter
       
    59 DEFFILE			mdasoundadapter.def
       
    60 NOSTRICTDEF
       
    61 SMPSAFE