multimediacommscontroller/mmccg711payloadformat/inc/g711payloadformatdefs.h
changeset 0 1bce908db942
equal deleted inserted replaced
-1:000000000000 0:1bce908db942
       
     1 /*
       
     2 * Copyright (c) 2004-2007 Nokia Corporation and/or its subsidiary(-ies).
       
     3 * All rights reserved.
       
     4 * This component and the accompanying materials are made available
       
     5 * under the terms of "Eclipse Public License v1.0"
       
     6 * which accompanies this distribution, and is available
       
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
       
     8 *
       
     9 * Initial Contributors:
       
    10 * Nokia Corporation - initial contribution.
       
    11 *
       
    12 * Contributors:
       
    13 *
       
    14 * Description:    Provides G711 payload format spesific definitions.
       
    15 *
       
    16 */
       
    17 
       
    18 
       
    19 
       
    20 
       
    21 
       
    22 #ifndef G711PAYLOADFORMATDEFS_H
       
    23 #define G711PAYLOADFORMATDEFS_H
       
    24 
       
    25 //  INCLUDES
       
    26 #include <e32base.h>
       
    27 
       
    28 #ifdef _DEBUG 
       
    29     #include <e32svr.h>
       
    30     #define _DEBUG_G711_WRITE
       
    31     #define _DEBUG_G711_READ
       
    32 #endif
       
    33 
       
    34 // CONSTANTS
       
    35 const TInt KG711MaxBitrate( 64000 );
       
    36 const TInt KDefaultSampleRate = 8000;
       
    37 const TInt KDefaultSampleRateInkHz = 8;
       
    38 
       
    39 // MACROS
       
    40 #ifdef _DEBUG_G711_WRITE
       
    41     #define DP_G711_WRITE(a) { _LIT( KName, a); RDebug::Print(KName); }
       
    42     #define DP_G711_WRITE2(a, b) \
       
    43     	{ _LIT(KName, a); RDebug::Print(KName, b); }
       
    44     #define DP_G711_WRITE3(a, b, c) \
       
    45  		{ _LIT(KName, a);  RDebug::Print(KName, b, c); }    
       
    46 #else
       
    47     #define DP_G711_WRITE(a);
       
    48     #define DP_G711_WRITE2(a, b);
       
    49     #define DP_G711_WRITE3(a, b, c);
       
    50 #endif
       
    51 
       
    52 #ifdef _DEBUG_G711_READ
       
    53     #define DP_G711_READ(a) \
       
    54     	{ _LIT( KName, a); RDebug::Print(KName); }
       
    55   	#define DP_G711_READ2(a, b) \
       
    56   		{ _LIT(KName, a);  RDebug::Print(KName, b); }
       
    57     #define DP_G711_READ3(a, b, c) \
       
    58     	{ _LIT(KName, a);  RDebug::Print(KName, b, c); }
       
    59 #else
       
    60     #define DP_G711_READ(a);
       
    61     #define DP_G711_READ2(a, b);
       
    62     #define DP_G711_READ3(a, b, c);
       
    63 #endif
       
    64 
       
    65 #endif      // G711PAYLOADFORMATDEFS_H
       
    66             
       
    67 // End of File