|
1 /* |
|
2 * Copyright (c) 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 "VoIPJBDataBufferImpl.h" |
|
20 |
|
21 |
|
22 // --------------------------------------------------------------------------- |
|
23 // CVoIPJBDataBufferImpl::NewL |
|
24 // --------------------------------------------------------------------------- |
|
25 // |
|
26 CVoIPJBDataBufferImpl* CVoIPJBDataBufferImpl::NewL(TInt aBufferLen) |
|
27 { |
|
28 CVoIPJBDataBufferImpl* self = new (ELeave) CVoIPJBDataBufferImpl(); |
|
29 CleanupStack::PushL(self); |
|
30 self->ConstructL(aBufferLen); |
|
31 CleanupStack::Pop(self); |
|
32 return self; |
|
33 } |
|
34 |
|
35 // --------------------------------------------------------------------------- |
|
36 // CVoIPJBDataBufferImpl::~CVoIPJBDataBufferImpl |
|
37 // --------------------------------------------------------------------------- |
|
38 // |
|
39 CVoIPJBDataBufferImpl::~CVoIPJBDataBufferImpl() |
|
40 { |
|
41 } |
|
42 |
|
43 // --------------------------------------------------------------------------- |
|
44 // CVoIPJBDataBufferImpl::CVoIPJBDataBufferImpl |
|
45 // --------------------------------------------------------------------------- |
|
46 // |
|
47 CVoIPJBDataBufferImpl::CVoIPJBDataBufferImpl() |
|
48 { |
|
49 } |
|
50 |
|
51 // --------------------------------------------------------------------------- |
|
52 // CVoIPJBDataBufferImpl::ConstructL |
|
53 // --------------------------------------------------------------------------- |
|
54 // |
|
55 void CVoIPJBDataBufferImpl::ConstructL(TInt aBufferLen) |
|
56 { |
|
57 CVoIPDataBufferImpl::ConstructL(aBufferLen); |
|
58 CVoIPJBDataBuffer::ConstructL(this); |
|
59 iType = CVoIPJBDataBuffer::EJitterBuffer; |
|
60 } |
|
61 |
|
62 // --------------------------------------------------------------------------- |
|
63 // CVoIPJBDataBufferImpl::SetBufferSequence |
|
64 // --------------------------------------------------------------------------- |
|
65 // |
|
66 void CVoIPJBDataBufferImpl::SetBufferSequence(const TUint aBufferSeq) |
|
67 { |
|
68 iBufferSequence = aBufferSeq; |
|
69 } |
|
70 |
|
71 // --------------------------------------------------------------------------- |
|
72 // CVoIPJBDataBufferImpl::GetBufferSequence |
|
73 // --------------------------------------------------------------------------- |
|
74 // |
|
75 void CVoIPJBDataBufferImpl::GetBufferSequence(TUint& aBufferSeq) |
|
76 { |
|
77 aBufferSeq = iBufferSequence; |
|
78 } |
|
79 |
|
80 |
|
81 // End of file |
|
82 |