Update contrib.
1 // Copyright (c) 2002-2009 Nokia Corporation and/or its subsidiary(-ies).
2 // All rights reserved.
3 // This component and the accompanying materials are made available
4 // under the terms of "Eclipse Public License v1.0"
5 // which accompanies this distribution, and is available
6 // at the URL "http://www.eclipse.org/legal/epl-v10.html".
8 // Initial Contributors:
9 // Nokia Corporation - initial contribution.
16 #include "MMFAudioOutput.h"
17 #include <mmf/server/mmfdatabuffer.h>
18 #include <mmfaudiopolicyproxy.h>
19 #include <ImplementationProxy.h>
20 #include <mmffourcc.h>
22 #include "TestMMFAudioOutput.h"
24 // special ack event id
25 const TUid KPrimeTestId = { 0x101F7853 };
26 const TUid KPlayTestId = { 0x11111111 };
32 void CTestMMFAudioOutput::SinkPrimeL()
34 //[ send a prime event to the test code ]
35 TMMFEvent primeEvent( KPrimeTestId, KErrNone );
36 SendEventToClient( primeEvent );
37 //[ now actually do the prime ]
38 CMMFAudioOutput::SinkPrimeL();
44 void CTestMMFAudioOutput::SinkPlayL()
46 //[ send an event back to the test code that we are playing]
47 TMMFEvent playEvent( KPlayTestId, KErrNone );
48 SendEventToClient( playEvent );
49 // [ actually do the play now]
50 CMMFAudioOutput::SinkPlayL();
58 MDataSink* CTestMMFAudioOutput::NewSinkL()
60 CTestMMFAudioOutput* self = new (ELeave) CTestMMFAudioOutput ;
61 return STATIC_CAST( MDataSink*, self ) ;