mmserv/voipaudioservices/inc/JitterBufferObserver.h
changeset 0 71ca22bcf22a
child 53 eabc8c503852
equal deleted inserted replaced
-1:000000000000 0:71ca22bcf22a
       
     1 /*
       
     2  * Copyright (c) 2008 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:  Observer for Jitter buffer.
       
    15  *
       
    16  */
       
    17 
       
    18 #ifndef JITTERBUFFER_OBS_H
       
    19 #define JITTERBUFFER_OBS_H
       
    20 
       
    21 class MJitterBufferObserver
       
    22     {
       
    23 public:
       
    24     enum TJBEvent
       
    25         {
       
    26         EGeneralError,
       
    27         EBufferUnderflow,
       
    28         EBufferOverflow,
       
    29         EBufferConsumed,
       
    30         EBufferReadyToPlay,
       
    31         EConcealErrorForNextBuffer
       
    32         };
       
    33 
       
    34     /**
       
    35      * Callback function to receive jitter buffer error events.
       
    36      */
       
    37     virtual void EventJB(TInt aEventType, TInt aError = KErrNone) = 0;
       
    38 
       
    39     /**
       
    40      * Callback function for codec reconfiguration for dynamic
       
    41      * buffer size adjustment.
       
    42      * @since S60 v5.0
       
    43      * @param aBufferSize Buffer size request in samples.
       
    44      *
       
    45      virtual void DynamicBufferChangeRequest(TInt aBufferSize) = 0;
       
    46      */
       
    47 
       
    48     };
       
    49 
       
    50 #endif  // JITTERBUFFER_OBS_H
       
    51 // End of file