mmserv/voipaudioservices/inc/JitterBufferObserver.h
author hgs
Fri, 23 Jul 2010 17:29:03 -0500
changeset 36 73253677b50a
parent 0 71ca22bcf22a
child 53 eabc8c503852
permissions -rw-r--r--
201029

/*
 * Copyright (c) 2008 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:  Observer for Jitter buffer.
 *
 */

#ifndef JITTERBUFFER_OBS_H
#define JITTERBUFFER_OBS_H

class MJitterBufferObserver
    {
public:
    enum TJBEvent
        {
        EGeneralError,
        EBufferUnderflow,
        EBufferOverflow,
        EBufferConsumed,
        EBufferReadyToPlay,
        EConcealErrorForNextBuffer
        };

    /**
     * Callback function to receive jitter buffer error events.
     */
    virtual void EventJB(TInt aEventType, TInt aError = KErrNone) = 0;

    /**
     * Callback function for codec reconfiguration for dynamic
     * buffer size adjustment.
     * @since S60 v5.0
     * @param aBufferSize Buffer size request in samples.
     *
     virtual void DynamicBufferChangeRequest(TInt aBufferSize) = 0;
     */

    };

#endif  // JITTERBUFFER_OBS_H
// End of file