Update contrib.
2 * Copyright (c) 2007-2008 Nokia Corporation and/or its subsidiary(-ies).
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".
9 * Initial Contributors:
10 * Nokia Corporation - initial contribution.
25 #include "minputport.h"
27 #include <a3f/mbuffersink.h>
28 #include <a3f/a3f_trace_utils.h>
32 // This is the implementation of CAudioSink API.
34 // @see CAudioComponent
36 NONSHARABLE_CLASS(CBufferSink) : public CBase,
43 // Create a new instance.
45 // @return CBufferSink* a pointer to the created instance.
47 IMPORT_C static CBufferSink* NewL();
52 // Deletes all objects and releases all resource owned by this instance.
54 virtual ~CBufferSink();
56 // from class MInputPort
57 TInt GetInputPort(MInputPort*& aInputPort);
58 virtual TInt EmptyBuffer(CMMFBuffer* aBuffer, MOutputPort* aSupplier);
59 virtual TInt BufferFilled(CMMFBuffer* aBuffer);
60 virtual TInt SetOutput(MOutputPort* aOutput);
61 virtual TInt RemoveOutput(MOutputPort* aOutput);
63 // from class MMFBufferSink
64 virtual TInt SetDataConsumer(MMMFAudioDataConsumer& aConsumer);
65 virtual TInt BufferEmptied(CMMFBuffer* aBuffer);
66 virtual TInt BuffersDiscarded();
74 MMMFAudioDataConsumer* iConsumer;
81 #endif // BUFFERSINK_H