|
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". |
|
7 // |
|
8 // Initial Contributors: |
|
9 // Nokia Corporation - initial contribution. |
|
10 // |
|
11 // Contributors: |
|
12 // |
|
13 // Description: |
|
14 // include\mmf\common\mmfutilitiespriv.h |
|
15 // |
|
16 // |
|
17 |
|
18 #ifndef MMFUTILITIESPRIV_H |
|
19 #define MMFUTILITIESPRIV_H |
|
20 |
|
21 #include <mmf/common/mmfutilities.h> |
|
22 |
|
23 #ifdef SYMBIAN_ENABLE_SPLIT_HEADERS |
|
24 #include <mmf/common/mmfhelper.h> |
|
25 #endif |
|
26 |
|
27 |
|
28 class CChannelAndSampleRateConverter; |
|
29 |
|
30 /* |
|
31 version of CMMFChannelAndSampleRateConverter that is implemented as adaptor to |
|
32 CChannelAndSampleRateConverter class |
|
33 */ |
|
34 NONSHARABLE_CLASS (CMMFForwardingChannelAndSampleRateConverter) : public CMMFChannelAndSampleRateConverter |
|
35 { |
|
36 public: |
|
37 static CMMFForwardingChannelAndSampleRateConverter* NewL(TInt aFromRate,TInt aFromChannels, |
|
38 TInt aToRate,TInt aToChannels); |
|
39 |
|
40 ~CMMFForwardingChannelAndSampleRateConverter(); |
|
41 |
|
42 protected: |
|
43 CMMFForwardingChannelAndSampleRateConverter(); |
|
44 void ConstructL(TInt aFromRate,TInt aFromChannels, |
|
45 TInt aToRate,TInt aToChannels); |
|
46 |
|
47 // from CMMFChannelAndSampleRateConverter |
|
48 TInt Convert(const CMMFDataBuffer& aSrcBuffer, CMMFDataBuffer& aDstBuffer); |
|
49 void Reset(); |
|
50 TUint MaxConvertBufferSize(TUint aSrcBufferSize); |
|
51 |
|
52 private: |
|
53 CChannelAndSampleRateConverter* iRealConverter; |
|
54 }; |
|
55 |
|
56 #endif |