mmserv/voipaudioservices/JitterBufferUtility/inc/InternalDef.h
changeset 55 e267340986c9
parent 0 71ca22bcf22a
equal deleted inserted replaced
52:4ce423f34688 55:e267340986c9
     1 /*
     1 /*
     2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). 
     2  * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies).
     3 * All rights reserved.
     3  * All rights reserved.
     4 * This component and the accompanying materials are made available
     4  * This component and the accompanying materials are made available
     5 * under the terms of "Eclipse Public License v1.0"
     5  * under the terms of "Eclipse Public License v1.0"
     6 * which accompanies this distribution, and is available
     6  * which accompanies this distribution, and is available
     7 * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     7  * at the URL "http://www.eclipse.org/legal/epl-v10.html".
     8 *
     8  *
     9 * Initial Contributors:
     9  * Initial Contributors:
    10 * Nokia Corporation - initial contribution.
    10  * Nokia Corporation - initial contribution.
    11 *
    11  *
    12 * Contributors:
    12  * Contributors:
    13 *
    13  *
    14 * Description:  Mcc Internal definitions
    14  * Description:  Mcc Internal definitions
    15 *
    15  *
    16 */
    16  */
    17 
       
    18 
       
    19 
    17 
    20 #ifndef INTERNALDEF_H
    18 #ifndef INTERNALDEF_H
    21 #define INTERNALDEF_H
    19 #define INTERNALDEF_H
    22 
       
    23 
    20 
    24 // CONSTANTS
    21 // CONSTANTS
    25 // When the remote end sends us SID/CN frames, then we can update the SID/CN
    22 // When the remote end sends us SID/CN frames, then we can update the SID/CN
    26 // parameters programmatically. Otherwise, we should not try to "emulate"
    23 // parameters programmatically. Otherwise, we should not try to "emulate"
    27 // SID/CN frames as this can lead to degradation of audio quality. Instead,
    24 // SID/CN frames as this can lead to degradation of audio quality. Instead,
    61 // non-sid (null/no data) frame. Unvoiced non-sid frame is detected when
    58 // non-sid (null/no data) frame. Unvoiced non-sid frame is detected when
    62 // the header byte does not indicate audio or comfort noise.
    59 // the header byte does not indicate audio or comfort noise.
    63 //const TUint8 KVoIPAudioFrame = 1;
    60 //const TUint8 KVoIPAudioFrame = 1;
    64 const TUint8 KVoIPCNFrame = 2;
    61 const TUint8 KVoIPCNFrame = 2;
    65 
    62 
    66 
       
    67 const TUint KJBAdaptUpdateIval = 250;
    63 const TUint KJBAdaptUpdateIval = 250;
    68 const TUint KJBMillisecondsToMicroseconds = 1000;
    64 const TUint KJBMillisecondsToMicroseconds = 1000;
    69 const TUint KJBEmptyBufferDelay = 2;
    65 const TUint KJBEmptyBufferDelay = 2;
    70 
    66 
    71 const TInt  KDefaultSampleRateInkHz = 8;
    67 const TInt KDefaultSampleRateInkHz = 8;
    72 const TInt  KLowBufferLimit = 2;
    68 const TInt KLowBufferLimit = 2;
    73 const TInt  KOverflowAlarmLimit = 20;
    69 const TInt KOverflowAlarmLimit = 20;
    74 
    70 
    75 // Codec frame sizes
    71 // Codec frame sizes
    76 const TInt  KAMRNBFrameSize = 32;
    72 const TInt KAMRNBFrameSize = 32;
    77 const TInt  KILBCFrameSize  = 52;
    73 const TInt KILBCFrameSize = 52;
    78 const TInt  KG729FrameSize  = 24;       // 10 octets + 2 for header
    74 const TInt KG729FrameSize = 24; // 10 octets + 2 for header
    79 
    75 
    80 // Max possible sequence number of RTP packet with standard RTP header.
    76 // Max possible sequence number of RTP packet with standard RTP header.
    81 const TUint KMaxSeqNumber   = 0xFFFF;   // 16-bit value
    77 const TUint KMaxSeqNumber = 0xFFFF; // 16-bit value
    82 
    78 
    83 // Codec frame times
    79 // Codec frame times
    84 const TInt  KAMRNBFrameTime = 20;
    80 const TInt KAMRNBFrameTime = 20;
    85 
    81 
    86 // VoIP codecs have a two byte header
    82 // VoIP codecs have a two byte header
    87 const TInt  KVoIPHeaderLength = 2;
    83 const TInt KVoIPHeaderLength = 2;
    88 
    84 
    89 #endif //INTERNALDEF_H
    85 #endif //INTERNALDEF_H
    90 
    86 
    91 
       
    92 // End of file
    87 // End of file