First public contribution.
2 * Copyright (c) 2005-2009 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.
22 This contains CT_SoundActiveCallback
25 #if (!defined __T_SOUNDACTIVECALLBACK_H__)
26 #define __T_SOUNDACTIVECALLBACK_H__
29 #include "sound_util.h"
30 #include "ActiveCallbackBase.h"
33 * Callback class for playing and recording processes
35 class CT_SoundActiveCallback : public CActiveCallbackBase
40 * Two phase constructor
42 * @leave system wide error
44 static CT_SoundActiveCallback* NewL(CDataWrapperBase& aCallback, TInt aPriority=EPriorityStandard);
47 * Two phase constructor
49 * @leave system wide error
51 static CT_SoundActiveCallback* NewLC(CDataWrapperBase& aCallback, TInt aPriority=EPriorityStandard);
56 ~CT_SoundActiveCallback();
59 * Setter method for section name
61 void SetSection(const TDesC& aSection);
64 * Method for creating sound data buffer.
66 void CreateSoundDataBufferL(TInt aLength);
71 * Protected constructor. First phase construction
73 CT_SoundActiveCallback(CDataWrapperBase& aCallback, TInt aPriority);
76 /** Position in buffer being played or recorded to */
78 /** Buffer being played or recorded to */
79 TSoundUtil::RAudioBuffer* iSoundData;
80 /** Section name associated with command */
82 /** Block in buffer */
86 #endif /* __T_SOUNDACTIVECALLBACK_H__ */