equal
deleted
inserted
replaced
22 #include "ipcallstream.h" |
22 #include "ipcallstream.h" |
23 |
23 |
24 using namespace TMS; |
24 using namespace TMS; |
25 |
25 |
26 // ----------------------------------------------------------------------------- |
26 // ----------------------------------------------------------------------------- |
27 // IPCallStreamBase::~IPCallStreamBase |
27 // TMSIPCallStreamBase::~TMSIPCallStreamBase |
28 // Destructor |
28 // Destructor |
29 // ----------------------------------------------------------------------------- |
29 // ----------------------------------------------------------------------------- |
30 // |
30 // |
31 IPCallStreamBase::~IPCallStreamBase() |
31 TMSIPCallStreamBase::~TMSIPCallStreamBase() |
32 { |
32 { |
33 TRACE_PRN_FN_ENT; |
33 TRACE_PRN_FN_ENT; |
34 |
34 |
35 if (iChunk.Handle() > 0) |
35 if (iChunk.Handle() > 0) |
36 { |
36 { |
43 TRACE_PRN_FN_EXT; |
43 TRACE_PRN_FN_EXT; |
44 } |
44 } |
45 |
45 |
46 #ifndef __USE_GSTREAMER__ |
46 #ifndef __USE_GSTREAMER__ |
47 // ----------------------------------------------------------------------------- |
47 // ----------------------------------------------------------------------------- |
48 // IPCallStreamBase::InitDevSoundL |
48 // TMSIPCallStreamBase::InitDevSoundL |
49 // |
49 // |
50 // ----------------------------------------------------------------------------- |
50 // ----------------------------------------------------------------------------- |
51 // |
51 // |
52 void IPCallStreamBase::InitDevSoundL(const TMMFState aDevSoundState, |
52 void TMSIPCallStreamBase::InitDevSoundL(const TMMFState aDevSoundState, |
53 const TMMFPrioritySettings priority) |
53 const TMMFPrioritySettings priority) |
54 { |
54 { |
55 TRACE_PRN_FN_ENT; |
55 TRACE_PRN_FN_ENT; |
56 |
56 |
57 if (!iDevSound) |
57 if (!iDevSound) |
67 } |
67 } |
68 } |
68 } |
69 #endif //__USE_GSTREAMER__ |
69 #endif //__USE_GSTREAMER__ |
70 |
70 |
71 // ----------------------------------------------------------------------------- |
71 // ----------------------------------------------------------------------------- |
72 // IPCallStreamBase::SetMsgQueue |
72 // TMSIPCallStreamBase::SetMsgQueue |
73 // |
73 // |
74 // ----------------------------------------------------------------------------- |
74 // ----------------------------------------------------------------------------- |
75 // |
75 // |
76 void IPCallStreamBase::SetMsgQueue(const RMsgQueue<TmsMsgBuf> aMsgQueue) |
76 void TMSIPCallStreamBase::SetMsgQueue(const RMsgQueue<TmsMsgBuf> aMsgQueue) |
77 { |
77 { |
78 iMsgQueue = aMsgQueue; |
78 iMsgQueue = aMsgQueue; |
79 } |
79 } |
80 |
80 |
81 // ----------------------------------------------------------------------------- |
81 // ----------------------------------------------------------------------------- |
82 // IPCallStreamBase::ConfigureMedia |
82 // TMSIPCallStreamBase::ConfigureMedia |
83 // |
83 // |
84 // ----------------------------------------------------------------------------- |
84 // ----------------------------------------------------------------------------- |
85 // |
85 // |
86 gint IPCallStreamBase::ConfigureMedia(const guint32 aCodecID) |
86 gint TMSIPCallStreamBase::ConfigureMedia(const guint32 aCodecID) |
87 { |
87 { |
88 gint framelen = 0; |
88 gint framelen = 0; |
89 |
89 |
90 switch (aCodecID) |
90 switch (aCodecID) |
91 { |
91 { |
128 |
128 |
129 return framelen; |
129 return framelen; |
130 } |
130 } |
131 |
131 |
132 // ----------------------------------------------------------------------------- |
132 // ----------------------------------------------------------------------------- |
133 // IPCallStreamBase::DoChunk |
133 // TMSIPCallStreamBase::DoChunk |
134 // Checks, adjusts and creates global RChunk. |
134 // Checks, adjusts and creates global RChunk. |
135 // ----------------------------------------------------------------------------- |
135 // ----------------------------------------------------------------------------- |
136 // |
136 // |
137 gint IPCallStreamBase::DoChunk(const gint aDataLen, TmsMsgBuf& aMsgBuffer) |
137 gint TMSIPCallStreamBase::DoChunk(const gint aDataLen, TmsMsgBuf& aMsgBuffer) |
138 { |
138 { |
139 gint status(KErrNone); |
139 gint status(KErrNone); |
140 |
140 |
141 // If chunk already created, try to reuse it |
141 // If chunk already created, try to reuse it |
142 if (iChunk.Handle()) |
142 if (iChunk.Handle()) |