multimediacommscontroller/mmccg711payloadformat/inc/g711payloadformatdefs.h
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Tue, 27 Apr 2010 17:02:55 +0300
branchRCL_3
changeset 14 5bf83dc720b3
parent 0 1bce908db942
permissions -rw-r--r--
Revision: 201015 Kit: 201017

/*
* Copyright (c) 2004-2007 Nokia Corporation and/or its subsidiary(-ies).
* All rights reserved.
* This component and the accompanying materials are made available
* under the terms of "Eclipse Public License v1.0"
* which accompanies this distribution, and is available
* at the URL "http://www.eclipse.org/legal/epl-v10.html".
*
* Initial Contributors:
* Nokia Corporation - initial contribution.
*
* Contributors:
*
* Description:    Provides G711 payload format spesific definitions.
*
*/





#ifndef G711PAYLOADFORMATDEFS_H
#define G711PAYLOADFORMATDEFS_H

//  INCLUDES
#include <e32base.h>

#ifdef _DEBUG 
    #include <e32svr.h>
    #define _DEBUG_G711_WRITE
    #define _DEBUG_G711_READ
#endif

// CONSTANTS
const TInt KG711MaxBitrate( 64000 );
const TInt KDefaultSampleRate = 8000;
const TInt KDefaultSampleRateInkHz = 8;

// MACROS
#ifdef _DEBUG_G711_WRITE
    #define DP_G711_WRITE(a) { _LIT( KName, a); RDebug::Print(KName); }
    #define DP_G711_WRITE2(a, b) \
    	{ _LIT(KName, a); RDebug::Print(KName, b); }
    #define DP_G711_WRITE3(a, b, c) \
 		{ _LIT(KName, a);  RDebug::Print(KName, b, c); }    
#else
    #define DP_G711_WRITE(a);
    #define DP_G711_WRITE2(a, b);
    #define DP_G711_WRITE3(a, b, c);
#endif

#ifdef _DEBUG_G711_READ
    #define DP_G711_READ(a) \
    	{ _LIT( KName, a); RDebug::Print(KName); }
  	#define DP_G711_READ2(a, b) \
  		{ _LIT(KName, a);  RDebug::Print(KName, b); }
    #define DP_G711_READ3(a, b, c) \
    	{ _LIT(KName, a);  RDebug::Print(KName, b, c); }
#else
    #define DP_G711_READ(a);
    #define DP_G711_READ2(a, b);
    #define DP_G711_READ3(a, b, c);
#endif

#endif      // G711PAYLOADFORMATDEFS_H
            
// End of File