|
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 "VoIPUplinkStreamImpl.h" |
|
21 #include "VoIPG711EncoderIntfcImpl.h" |
|
22 |
|
23 |
|
24 // --------------------------------------------------------------------------- |
|
25 // CVoIPG711EncoderIntfcImpl::NewL |
|
26 // --------------------------------------------------------------------------- |
|
27 // |
|
28 CVoIPG711EncoderIntfcImpl* CVoIPG711EncoderIntfcImpl::NewL( |
|
29 CVoIPAudioUplinkStreamImpl* aUpLinkStreamImpl) |
|
30 { |
|
31 CVoIPG711EncoderIntfcImpl* self = new (ELeave) CVoIPG711EncoderIntfcImpl(); |
|
32 CleanupStack::PushL(self); |
|
33 self->ConstructL(aUpLinkStreamImpl); |
|
34 CleanupStack::Pop(self); |
|
35 return self; |
|
36 } |
|
37 |
|
38 // --------------------------------------------------------------------------- |
|
39 // CVoIPG711EncoderIntfcImpl::~CVoIPG711EncoderIntfcImpl |
|
40 // --------------------------------------------------------------------------- |
|
41 // |
|
42 CVoIPG711EncoderIntfcImpl::~CVoIPG711EncoderIntfcImpl() |
|
43 { |
|
44 } |
|
45 |
|
46 // --------------------------------------------------------------------------- |
|
47 // CVoIPG711EncoderIntfcImpl::CVoIPG711EncoderIntfcImpl |
|
48 // --------------------------------------------------------------------------- |
|
49 // |
|
50 CVoIPG711EncoderIntfcImpl::CVoIPG711EncoderIntfcImpl() |
|
51 { |
|
52 } |
|
53 |
|
54 // --------------------------------------------------------------------------- |
|
55 // CVoIPG711EncoderIntfcImpl::ConstructL |
|
56 // --------------------------------------------------------------------------- |
|
57 // |
|
58 void CVoIPG711EncoderIntfcImpl::ConstructL( |
|
59 CVoIPAudioUplinkStreamImpl* aUpLinkStreamImpl) |
|
60 { |
|
61 iVoIPAudioSession = aUpLinkStreamImpl->GetSession(); |
|
62 CVoIPFormatIntfcImpl::ConstructL(iVoIPAudioSession); |
|
63 CVoIPG711EncoderIntfc::ConstructL(this); |
|
64 } |
|
65 |
|
66 // --------------------------------------------------------------------------- |
|
67 // CVoIPG711EncoderIntfcImpl::SetMode |
|
68 // --------------------------------------------------------------------------- |
|
69 // |
|
70 TInt CVoIPG711EncoderIntfcImpl::SetMode( |
|
71 CVoIPFormatIntfc::TG711CodecMode aMode) |
|
72 { |
|
73 TInt err = iVoIPAudioSession->SetMode(aMode); |
|
74 return err; |
|
75 } |
|
76 |
|
77 // --------------------------------------------------------------------------- |
|
78 // CVoIPG711EncoderIntfcImpl::GetMode |
|
79 // --------------------------------------------------------------------------- |
|
80 // |
|
81 TInt CVoIPG711EncoderIntfcImpl::GetMode( |
|
82 CVoIPFormatIntfc::TG711CodecMode& aMode) |
|
83 { |
|
84 TInt err = iVoIPAudioSession->GetMode(aMode); |
|
85 return err; |
|
86 } |
|
87 |
|
88 |
|
89 // End of file |