|
1 /* |
|
2 * Copyright (c) 2007-2008 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: VOIP Audio Services |
|
15 * |
|
16 */ |
|
17 |
|
18 |
|
19 #include <voipformatintfc.h> |
|
20 #include "VoIPFormatIntfcImpl.h" |
|
21 |
|
22 |
|
23 // --------------------------------------------------------------------------- |
|
24 // CVoIPFormatIntfc::~CVoIPFormatIntfc |
|
25 // --------------------------------------------------------------------------- |
|
26 // |
|
27 EXPORT_C CVoIPFormatIntfc::~CVoIPFormatIntfc() |
|
28 { |
|
29 } |
|
30 |
|
31 // --------------------------------------------------------------------------- |
|
32 // CVoIPFormatIntfc::CVoIPFormatIntfc |
|
33 // --------------------------------------------------------------------------- |
|
34 // |
|
35 CVoIPFormatIntfc::CVoIPFormatIntfc() |
|
36 { |
|
37 } |
|
38 |
|
39 // --------------------------------------------------------------------------- |
|
40 // CVoIPFormatIntfc::ConstructL |
|
41 // --------------------------------------------------------------------------- |
|
42 // |
|
43 void CVoIPFormatIntfc::ConstructL(CVoIPFormatIntfcImpl* aFormatIntfcImpl) |
|
44 { |
|
45 iVoIPFormatIntfcImpl = aFormatIntfcImpl; |
|
46 } |
|
47 |
|
48 // --------------------------------------------------------------------------- |
|
49 // CVoIPFormatIntfc::SetObserver |
|
50 // --------------------------------------------------------------------------- |
|
51 // |
|
52 EXPORT_C TInt CVoIPFormatIntfc::SetObserver(MVoIPFormatObserver& aObserver) |
|
53 { |
|
54 TInt err = iVoIPFormatIntfcImpl->SetObserver(aObserver); |
|
55 return err; |
|
56 } |
|
57 |
|
58 // --------------------------------------------------------------------------- |
|
59 // CVoIPFormatIntfc::GetSupportedBitRates |
|
60 // --------------------------------------------------------------------------- |
|
61 // |
|
62 EXPORT_C TInt CVoIPFormatIntfc::GetSupportedBitRates(RArray<TUint>& aArray) |
|
63 { |
|
64 TInt err = iVoIPFormatIntfcImpl->GetSupportedBitRates(aArray); |
|
65 return err; |
|
66 } |
|
67 |
|
68 // --------------------------------------------------------------------------- |
|
69 // CVoIPFormatIntfc::SetBitRate |
|
70 // --------------------------------------------------------------------------- |
|
71 // |
|
72 EXPORT_C TInt CVoIPFormatIntfc::SetBitRate(TUint aBitrate) |
|
73 { |
|
74 TInt err = iVoIPFormatIntfcImpl->SetBitRate(aBitrate); |
|
75 return err; |
|
76 } |
|
77 |
|
78 // --------------------------------------------------------------------------- |
|
79 // CVoIPFormatIntfc::GetBitRate |
|
80 // --------------------------------------------------------------------------- |
|
81 // |
|
82 EXPORT_C TInt CVoIPFormatIntfc::GetBitRate(TUint& aBitrate) |
|
83 { |
|
84 TInt err = iVoIPFormatIntfcImpl->GetBitRate(aBitrate); |
|
85 return err; |
|
86 } |
|
87 |
|
88 // --------------------------------------------------------------------------- |
|
89 // CVoIPFormatIntfc::SetVAD |
|
90 // --------------------------------------------------------------------------- |
|
91 // |
|
92 EXPORT_C TInt CVoIPFormatIntfc::SetVAD(TBool aVad) |
|
93 { |
|
94 TInt err = iVoIPFormatIntfcImpl->SetVAD(aVad); |
|
95 return err; |
|
96 } |
|
97 |
|
98 // --------------------------------------------------------------------------- |
|
99 // CVoIPFormatIntfc::GetVAD |
|
100 // --------------------------------------------------------------------------- |
|
101 // |
|
102 EXPORT_C TInt CVoIPFormatIntfc::GetVAD(TBool& aVad) |
|
103 { |
|
104 TInt err = iVoIPFormatIntfcImpl->GetVAD(aVad); |
|
105 return err; |
|
106 } |
|
107 |
|
108 // --------------------------------------------------------------------------- |
|
109 // CVoIPFormatIntfc::FrameModeRequiredForErrorConcealment |
|
110 // --------------------------------------------------------------------------- |
|
111 // |
|
112 EXPORT_C TInt CVoIPFormatIntfc::FrameModeRequiredForErrorConcealment( |
|
113 TBool& aMode) |
|
114 { |
|
115 TInt err = iVoIPFormatIntfcImpl->FrameModeRequiredForErrorConcealment(aMode); |
|
116 return err; |
|
117 } |
|
118 |
|
119 // --------------------------------------------------------------------------- |
|
120 // CVoIPFormatIntfc::SetFrameMode |
|
121 // --------------------------------------------------------------------------- |
|
122 // |
|
123 EXPORT_C TInt CVoIPFormatIntfc::SetFrameMode(TBool aMode) |
|
124 { |
|
125 TInt err = iVoIPFormatIntfcImpl->SetFrameMode(aMode); |
|
126 return err; |
|
127 } |
|
128 |
|
129 // --------------------------------------------------------------------------- |
|
130 // CVoIPFormatIntfc::GetFrameMode |
|
131 // --------------------------------------------------------------------------- |
|
132 // |
|
133 EXPORT_C TInt CVoIPFormatIntfc::GetFrameMode(TBool& aMode) |
|
134 { |
|
135 TInt err = iVoIPFormatIntfcImpl->GetFrameMode(aMode); |
|
136 return err; |
|
137 } |
|
138 |
|
139 // --------------------------------------------------------------------------- |
|
140 // CVoIPFormatIntfc::ConcealErrorForNextBuffer |
|
141 // --------------------------------------------------------------------------- |
|
142 // |
|
143 EXPORT_C TInt CVoIPFormatIntfc::ConcealErrorForNextBuffer() |
|
144 { |
|
145 TInt err = iVoIPFormatIntfcImpl->ConcealErrorForNextBuffer(); |
|
146 return err; |
|
147 } |
|
148 |
|
149 |
|
150 // End of file |