|
1 /* |
|
2 * Copyright (c) 2005 Nokia Corporation and/or its subsidiary(-ies). |
|
3 * All rights reserved. |
|
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". |
|
8 * |
|
9 * Initial Contributors: |
|
10 * Nokia Corporation - initial contribution. |
|
11 * |
|
12 * Contributors: |
|
13 * |
|
14 * Description: |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 |
|
20 #include "mcemessagecodec.h" |
|
21 #include "mcesession.h" |
|
22 #include "mcemanager.h" |
|
23 #include "mcemediastream.h" |
|
24 #include "mcecommessagecodec.h" |
|
25 #include "mceclientserver.h" |
|
26 #include "mcefactory.h" |
|
27 #include "mceevents.h" |
|
28 |
|
29 |
|
30 #define _FLAT_DATA static_cast<CMceComMessageCodec*>( iFlatData ) |
|
31 #define FLAT_DATA( data ) _FLAT_DATA->data |
|
32 |
|
33 // ============================ MEMBER FUNCTIONS =============================== |
|
34 |
|
35 |
|
36 // ----------------------------------------------------------------------------- |
|
37 // CMceMessageCodec::InitializeL |
|
38 // ----------------------------------------------------------------------------- |
|
39 // |
|
40 void CMceMessageCodec::InitializeL( CMceMediaStream& aParent ) |
|
41 { |
|
42 CMceCodec::InitializeL( aParent ); |
|
43 } |
|
44 |
|
45 // ----------------------------------------------------------------------------- |
|
46 // CMceMessageCodec::~CMceMessageCodec |
|
47 // ----------------------------------------------------------------------------- |
|
48 // |
|
49 CMceMessageCodec::~CMceMessageCodec() |
|
50 { |
|
51 } |
|
52 |
|
53 // ----------------------------------------------------------------------------- |
|
54 // CMceMessageCodec::SamplingFreq |
|
55 // ----------------------------------------------------------------------------- |
|
56 // |
|
57 TUint CMceMessageCodec::SamplingFreq() const |
|
58 { |
|
59 return FLAT_DATA( iSamplingFreq ); |
|
60 |
|
61 } |
|
62 |
|
63 // ----------------------------------------------------------------------------- |
|
64 // CMceMessageCodec::VAD |
|
65 // ----------------------------------------------------------------------------- |
|
66 // |
|
67 TBool CMceMessageCodec::VAD() const |
|
68 { |
|
69 return FLAT_DATA( iEnableVAD ); |
|
70 } |
|
71 |
|
72 // ----------------------------------------------------------------------------- |
|
73 // CMceMessageCodec::PTime |
|
74 // ----------------------------------------------------------------------------- |
|
75 // |
|
76 TUint CMceMessageCodec::PTime() const |
|
77 { |
|
78 return FLAT_DATA( iPTime ); |
|
79 } |
|
80 |
|
81 // ----------------------------------------------------------------------------- |
|
82 // CMceMessageCodec::MaxPTime |
|
83 // ----------------------------------------------------------------------------- |
|
84 // |
|
85 TUint CMceMessageCodec::MaxPTime() const |
|
86 { |
|
87 return FLAT_DATA( iMaxPTime ); |
|
88 } |
|
89 |
|
90 // ----------------------------------------------------------------------------- |
|
91 // CMceMessageCodec::CMceMessageCodec |
|
92 // ----------------------------------------------------------------------------- |
|
93 // |
|
94 CMceMessageCodec::CMceMessageCodec() : |
|
95 CMceCodec() |
|
96 { |
|
97 } |
|
98 |
|
99 // ----------------------------------------------------------------------------- |
|
100 // CMceMessageCodec::ConstructL |
|
101 // ----------------------------------------------------------------------------- |
|
102 // |
|
103 void CMceMessageCodec::ConstructL( CMceComMessageCodec* aFlatData ) |
|
104 { |
|
105 CMceCodec::ConstructL( aFlatData ); |
|
106 } |
|
107 |
|
108 |
|
109 // ----------------------------------------------------------------------------- |
|
110 // CMceMessageCodec::Factory |
|
111 // ----------------------------------------------------------------------------- |
|
112 // |
|
113 /*TMceMessageCodecFactory CMceMessageCodec::Factory() |
|
114 { |
|
115 return TMceMessageCodecFactory(); |
|
116 }*/ |