mmmw_plat/voip_audio_services_api/inc/voipjitterbufferintfc.h
branchRCL_3
changeset 3 4f62049db6ac
parent 0 71ca22bcf22a
child 53 eabc8c503852
equal deleted inserted replaced
0:71ca22bcf22a 3:4f62049db6ac
     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:  Defines APIs common to all supported codecs.
    14  * Description:  Defines APIs common to all supported codecs.
    15 *
    15  *
    16 */
    16  */
    17 
       
    18 
    17 
    19 #ifndef __VOIPJITTERBUFFERINTFC_H
    18 #ifndef __VOIPJITTERBUFFERINTFC_H
    20 #define __VOIPJITTERBUFFERINTFC_H
    19 #define __VOIPJITTERBUFFERINTFC_H
    21 
    20 
    22 //  INCLUDES
    21 //  INCLUDES
    23 #include <e32base.h>
    22 #include <e32base.h>
    24 #include <voipaudiocommon.h>
    23 #include <voipaudiocommon.h>
    25 
    24 
    26 
       
    27 // FORWARD DECLARATIONS
    25 // FORWARD DECLARATIONS
    28 class CVoIPJitterBufferIntfc;
    26 class CVoIPJitterBufferIntfc;
    29 class CVoIPJitterBufferIntfcImpl;
    27 class CVoIPJitterBufferIntfcImpl;
    30 
    28 
    31 
       
    32 /**
    29 /**
    33  *  TVoIPJBConfig
    30  *  TVoIPJBConfig
    34  *  ?description
    31  *  ?description
    35  *  @since S60 v5.0
    32  *
    36  */
    33  */
    37 class TVoIPJBConfig
    34 class TVoIPJBConfig
    38     {
    35     {
    39 public:
    36 public:
    40     // Jitter latency
    37     // Jitter latency
    60 
    57 
    61     //Jitter Buffer tone duration
    58     //Jitter Buffer tone duration
    62     TUint iJBPlayToneDuration;
    59     TUint iJBPlayToneDuration;
    63     };
    60     };
    64 
    61 
    65 
       
    66 /**
    62 /**
    67  *  MVoIPJitterBufferObserver class
    63  *  MVoIPJitterBufferObserver class
    68  *
    64  *
    69  *  description
    65  *  description
    70  *
    66  *
    71  *  @lib VoIPAudioIntfc.dll
    67  *  @lib VoIPAudioIntfc.dll
    72  *  @since S60 v5.0
    68  *
    73  */
    69  */
    74 class MVoIPJitterBufferObserver
    70 class MVoIPJitterBufferObserver
    75     {
    71     {
    76 public:
    72 public:
    77     static const TUint KJBReserved1 = 1; //TBD
    73     static const TUint KJBReserved1 = 1; //TBD
    85      * @param const CVoIPJitterBufferIntfc&
    81      * @param const CVoIPJitterBufferIntfc&
    86      * @param TInt - event type
    82      * @param TInt - event type
    87      * @return void
    83      * @return void
    88      */
    84      */
    89     virtual void Event(const CVoIPJitterBufferIntfc& aSrc,
    85     virtual void Event(const CVoIPJitterBufferIntfc& aSrc,
    90                        TInt aEventType) = 0;
    86             TInt aEventType) = 0;
    91     };
    87     };
    92 
       
    93 
    88 
    94 /**
    89 /**
    95  *  CVoIPFormatIntfc class
    90  *  CVoIPFormatIntfc class
    96  *
    91  *
    97  *  Base class for codec format configuration
    92  *  Base class for codec format configuration
    98  *
    93  *
    99  *  @lib VoIPAudioIntfc.dll
    94  *  @lib VoIPAudioIntfc.dll
   100  *  @since S60 v5.0
    95  *
   101  */
    96  */
   102 class CVoIPJitterBufferIntfc
    97 class CVoIPJitterBufferIntfc
   103     {
    98     {
   104 public:
    99 public:
   105     /**
   100     /**
   117      * @since S60 v5.0
   112      * @since S60 v5.0
   118      * @param MVoIPFormatObserver&
   113      * @param MVoIPFormatObserver&
   119      * @return TInt
   114      * @return TInt
   120      */
   115      */
   121     IMPORT_C TInt SetObserver(MVoIPJitterBufferObserver& aObserver);
   116     IMPORT_C TInt SetObserver(MVoIPJitterBufferObserver& aObserver);
   122 
       
   123 
   117 
   124     /**
   118     /**
   125      * ConfigureJitterBuffer
   119      * ConfigureJitterBuffer
   126      * @since S60 v5.0
   120      * @since S60 v5.0
   127      * @param TVoIPJBConfig&
   121      * @param TVoIPJBConfig&
   160      *
   154      *
   161      * @since S60 v5.0
   155      * @since S60 v5.0
   162      * @param none
   156      * @param none
   163      * @return none
   157      * @return none
   164      */
   158      */
   165       CVoIPJitterBufferIntfc();
   159     CVoIPJitterBufferIntfc();
   166 
   160 
   167     /**
   161     /**
   168      * 2-nd phase constructor
   162      * 2-nd phase constructor
   169      *
   163      *
   170      * @since S60 v5.0
   164      * @since S60 v5.0
   178 
   172 
   179     };
   173     };
   180 
   174 
   181 #endif  //__VOIPJITTERBUFFERINTFC_H
   175 #endif  //__VOIPJITTERBUFFERINTFC_H
   182 
   176 
   183 
       
   184 // End of File
   177 // End of File