1 /* |
1 /* |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
2 * Copyright (c) 2008 Nokia Corporation and/or its subsidiary(-ies). |
3 * All rights reserved. |
3 * All rights reserved. |
4 * This component and the accompanying materials are made available |
4 * This component and the accompanying materials are made available |
5 * under the terms of "Eclipse Public License v1.0" |
5 * under the terms of "Eclipse Public License v1.0" |
6 * which accompanies this distribution, and is available |
6 * which accompanies this distribution, and is available |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
7 * at the URL "http://www.eclipse.org/legal/epl-v10.html". |
8 * |
8 * |
9 * Initial Contributors: |
9 * Initial Contributors: |
10 * Nokia Corporation - initial contribution. |
10 * Nokia Corporation - initial contribution. |
11 * |
11 * |
12 * Contributors: |
12 * Contributors: |
13 * |
13 * |
14 * Description: VOIP Audio Services |
14 * Description: VOIP Audio Services |
15 * |
15 * |
16 */ |
16 */ |
17 |
|
18 |
17 |
19 #include <e32base.h> |
18 #include <e32base.h> |
20 #include "VoIPAudioSession.h" |
19 #include "VoIPAudioSession.h" |
21 #include "VoIPJitterBufferIntfcImpl.h" |
20 #include "VoIPJitterBufferIntfcImpl.h" |
22 |
|
23 |
21 |
24 // --------------------------------------------------------------------------- |
22 // --------------------------------------------------------------------------- |
25 // CVoIPJitterBufferIntfcImpl::NewL |
23 // CVoIPJitterBufferIntfcImpl::NewL |
26 // --------------------------------------------------------------------------- |
24 // --------------------------------------------------------------------------- |
27 // |
25 // |
28 CVoIPJitterBufferIntfcImpl* CVoIPJitterBufferIntfcImpl::NewL( |
26 CVoIPJitterBufferIntfcImpl* CVoIPJitterBufferIntfcImpl::NewL( |
29 RVoIPAudioSession* aVoIPAudioSession) |
27 RVoIPAudioSession* aVoIPAudioSession) |
30 { |
28 { |
31 CVoIPJitterBufferIntfcImpl* self = |
29 CVoIPJitterBufferIntfcImpl* self = |
32 new (ELeave) CVoIPJitterBufferIntfcImpl(); |
30 new (ELeave) CVoIPJitterBufferIntfcImpl(); |
33 CleanupStack::PushL(self); |
31 CleanupStack::PushL(self); |
34 self->ConstructL(aVoIPAudioSession); |
32 self->ConstructL(aVoIPAudioSession); |
35 CleanupStack::Pop(self); |
33 CleanupStack::Pop(self); |
36 return self; |
34 return self; |
37 } |
35 } |
55 // --------------------------------------------------------------------------- |
53 // --------------------------------------------------------------------------- |
56 // CVoIPJitterBufferIntfcImpl::ConstructL |
54 // CVoIPJitterBufferIntfcImpl::ConstructL |
57 // --------------------------------------------------------------------------- |
55 // --------------------------------------------------------------------------- |
58 // |
56 // |
59 void CVoIPJitterBufferIntfcImpl::ConstructL( |
57 void CVoIPJitterBufferIntfcImpl::ConstructL( |
60 RVoIPAudioSession* aVoIPAudioSession) |
58 RVoIPAudioSession* aVoIPAudioSession) |
61 { |
59 { |
62 CVoIPJitterBufferIntfc::ConstructL(this); |
60 CVoIPJitterBufferIntfc::ConstructL(this); |
63 iVoIPAudioSession = aVoIPAudioSession; |
61 iVoIPAudioSession = aVoIPAudioSession; |
64 } |
62 } |
65 |
63 |
66 // --------------------------------------------------------------------------- |
64 // --------------------------------------------------------------------------- |
67 // CVoIPJitterBufferIntfcImpl::SetObserver |
65 // CVoIPJitterBufferIntfcImpl::SetObserver |
68 // --------------------------------------------------------------------------- |
66 // --------------------------------------------------------------------------- |
69 // |
67 // |
70 TInt CVoIPJitterBufferIntfcImpl::SetObserver( |
68 TInt CVoIPJitterBufferIntfcImpl::SetObserver( |
71 MVoIPJitterBufferObserver& aObserver) |
69 MVoIPJitterBufferObserver& aObserver) |
72 { |
70 { |
73 iObserver = &aObserver; |
71 iObserver = &aObserver; |
74 return KErrNone; |
72 return KErrNone; |
75 } |
73 } |
76 |
74 |
77 // --------------------------------------------------------------------------- |
75 // --------------------------------------------------------------------------- |
78 // CVoIPJitterBufferIntfcImpl::ConfigureJitterBuffer |
76 // CVoIPJitterBufferIntfcImpl::ConfigureJitterBuffer |
79 // --------------------------------------------------------------------------- |
77 // --------------------------------------------------------------------------- |
80 // |
78 // |
81 TInt CVoIPJitterBufferIntfcImpl::ConfigureJitterBuffer( |
79 TInt CVoIPJitterBufferIntfcImpl::ConfigureJitterBuffer( |
82 const TVoIPJBConfig& aJbConfig) |
80 const TVoIPJBConfig& aJbConfig) |
83 { |
81 { |
84 TInt err = iVoIPAudioSession->ConfigureJitterBuffer(aJbConfig); |
82 TInt err = iVoIPAudioSession->ConfigureJitterBuffer(aJbConfig); |
85 return err; |
83 return err; |
86 } |
84 } |
87 |
85 |
113 { |
111 { |
114 TInt err = iVoIPAudioSession->DelayUp(); |
112 TInt err = iVoIPAudioSession->DelayUp(); |
115 return err; |
113 return err; |
116 } |
114 } |
117 |
115 |
|
116 #ifdef __FEATURE_NOT_SUPPORTED__ |
118 // --------------------------------------------------------------------------- |
117 // --------------------------------------------------------------------------- |
119 // CVoIPJitterBufferIntfcImpl::SendEventToObserver |
118 // CVoIPJitterBufferIntfcImpl::SendEventToObserver |
120 // --------------------------------------------------------------------------- |
119 // --------------------------------------------------------------------------- |
121 // |
120 // |
122 void CVoIPJitterBufferIntfcImpl::SendEventToObserver(TInt aEvent) |
121 void CVoIPJitterBufferIntfcImpl::SendEventToObserver(TInt aEvent) |
123 { |
122 { |
124 iObserver->Event(*this, aEvent); |
123 iObserver->Event(*this, aEvent); |
125 } |
124 } |
|
125 #endif //__FEATURE_NOT_SUPPORTED__ |
|
126 |
126 |
127 |
127 // End of file |
128 // End of file |