|
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 "VoIPAudioSession.h" |
|
20 #include "VoIPDownlinkStreamImpl.h" |
|
21 #include "VoIPILBCDecoderIntfcImpl.h" |
|
22 |
|
23 |
|
24 // --------------------------------------------------------------------------- |
|
25 // CVoIPILBCDecoderIntfcImpl::NewL |
|
26 // --------------------------------------------------------------------------- |
|
27 // |
|
28 CVoIPILBCDecoderIntfcImpl* CVoIPILBCDecoderIntfcImpl::NewL( |
|
29 CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl) |
|
30 { |
|
31 CVoIPILBCDecoderIntfcImpl* self = new (ELeave) CVoIPILBCDecoderIntfcImpl(); |
|
32 CleanupStack::PushL(self); |
|
33 self->ConstructL(aDnLinkStreamImpl); |
|
34 CleanupStack::Pop(self); |
|
35 return self; |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------------------------- |
|
39 // CVoIPILBCDecoderIntfcImpl::~CVoIPILBCDecoderIntfcImpl |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 CVoIPILBCDecoderIntfcImpl::~CVoIPILBCDecoderIntfcImpl() |
|
43 { |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------------------------- |
|
47 // CVoIPILBCDecoderIntfcImpl::CVoIPILBCDecoderIntfcImpl |
|
48 // --------------------------------------------------------------------------- |
|
49 // |
|
50 CVoIPILBCDecoderIntfcImpl::CVoIPILBCDecoderIntfcImpl() |
|
51 { |
|
52 } |
|
53 |
|
54 // --------------------------------------------------------------------------- |
|
55 // CVoIPILBCDecoderIntfcImpl::ConstructL |
|
56 // --------------------------------------------------------------------------- |
|
57 // |
|
58 void CVoIPILBCDecoderIntfcImpl::ConstructL( |
|
59 CVoIPAudioDownlinkStreamImpl* aDnLinkStreamImpl) |
|
60 { |
|
61 iVoIPAudioSession = aDnLinkStreamImpl->GetSession(); |
|
62 CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession); |
|
63 CVoIPILBCDecoderIntfc::ConstructL(this); |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // CVoIPILBCDecoderIntfcImpl::SetMode |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 TInt CVoIPILBCDecoderIntfcImpl::SetMode(TILBCCodecMode aMode) |
|
71 { |
|
72 TInt err = iVoIPAudioSession->SetMode(aMode); |
|
73 return err; |
|
74 } |
|
75 |
|
76 // --------------------------------------------------------------------------- |
|
77 // CVoIPILBCDecoderIntfcImpl::GetMode |
|
78 // --------------------------------------------------------------------------- |
|
79 // |
|
80 TInt CVoIPILBCDecoderIntfcImpl::GetMode(TILBCCodecMode& aMode) |
|
81 { |
|
82 TInt err = iVoIPAudioSession->GetMode(aMode); |
|
83 return err; |
|
84 } |
|
85 |
|
86 // --------------------------------------------------------------------------- |
|
87 // CVoIPILBCDecoderIntfcImpl::SetCNG |
|
88 // --------------------------------------------------------------------------- |
|
89 // |
|
90 TInt CVoIPILBCDecoderIntfcImpl::SetCNG(TBool aCng) |
|
91 { |
|
92 TInt err = iVoIPAudioSession->SetCNG(aCng); |
|
93 return err; |
|
94 } |
|
95 |
|
96 // --------------------------------------------------------------------------- |
|
97 // CVoIPILBCDecoderIntfcImpl::GetCNG |
|
98 // --------------------------------------------------------------------------- |
|
99 // |
|
100 TInt CVoIPILBCDecoderIntfcImpl::GetCNG(TBool& aCng) |
|
101 { |
|
102 TInt err = iVoIPAudioSession->GetCNG(aCng); |
|
103 return err; |
|
104 } |
|
105 |
|
106 |
|
107 // End of file |