equal
deleted
inserted
replaced
89 }; |
89 }; |
90 |
90 |
91 public: |
91 public: |
92 virtual ~TMSIPCallStreamBase(); |
92 virtual ~TMSIPCallStreamBase(); |
93 |
93 |
94 virtual void Start() = 0; |
94 virtual void Start(const gint retrytime) = 0; |
95 virtual void Stop() = 0; |
95 virtual void Stop() = 0; |
96 virtual gint SetCodecCi() = 0; |
96 virtual gint SetCodecCi() = 0; |
97 |
97 |
98 #ifndef __USE_GSTREAMER__ |
98 #ifndef __USE_GSTREAMER__ |
99 void InitDevSoundL(const TMMFState aDevSoundState, |
99 void InitDevSoundL(const TMMFState aDevSoundState, |
160 static void cb_raw_playback_handoff(GstElement* appsrc, guint size); |
160 static void cb_raw_playback_handoff(GstElement* appsrc, guint size); |
161 static gboolean bus_call(GstBus* bus, GstMessage* msg, gpointer data); |
161 static gboolean bus_call(GstBus* bus, GstMessage* msg, gpointer data); |
162 #endif //__USE_GSTREAMER__ |
162 #endif //__USE_GSTREAMER__ |
163 |
163 |
164 static TMSIPDownlink* NewL(TMSIPDevSoundObserver& observer, |
164 static TMSIPDownlink* NewL(TMSIPDevSoundObserver& observer, |
165 const guint32 codecID, const TMMFPrioritySettings priority); |
165 const guint32 codecID, const TMMFPrioritySettings priority, |
|
166 const gint retrytime); |
166 |
167 |
167 gint SetCodecCi(); |
168 gint SetCodecCi(); |
168 void Start(); |
169 void Start(const gint retrytime); |
169 void Stop(); |
170 void Stop(); |
170 void BufferFilled(const guint buflen); |
171 void BufferFilled(const guint buflen); |
171 gint SetVolume(const guint volume); |
172 gint SetVolume(const guint volume); |
172 gint GetVolume(guint& volume); |
173 gint GetVolume(guint& volume); |
173 gint GetMaxVolume(guint& volume); |
174 gint GetMaxVolume(guint& volume); |
192 void GetAudioDeviceL(TMSAudioOutput& output); |
193 void GetAudioDeviceL(TMSAudioOutput& output); |
193 |
194 |
194 protected: |
195 protected: |
195 TMSIPDownlink(TMSIPDevSoundObserver& observer); |
196 TMSIPDownlink(TMSIPDevSoundObserver& observer); |
196 void ConstructL(const guint32 codecID, |
197 void ConstructL(const guint32 codecID, |
197 const TMMFPrioritySettings priority); |
198 const TMMFPrioritySettings priority, const gint retrytime); |
198 |
199 |
199 private: |
200 private: |
200 void SetCodecCiL(); |
201 void SetCodecCiL(); |
201 |
202 |
202 #ifdef __USE_GSTREAMER__ |
203 #ifdef __USE_GSTREAMER__ |
257 static void cb_record_raw_handoff(GstElement *sink); |
258 static void cb_record_raw_handoff(GstElement *sink); |
258 static gboolean bus_call(GstBus* bus, GstMessage* msg, gpointer data); |
259 static gboolean bus_call(GstBus* bus, GstMessage* msg, gpointer data); |
259 #endif //__USE_GSTREAMER__ |
260 #endif //__USE_GSTREAMER__ |
260 |
261 |
261 static TMSIPUplink* NewL(TMSIPDevSoundObserver& observer, |
262 static TMSIPUplink* NewL(TMSIPDevSoundObserver& observer, |
262 const guint32 codecID, const TMMFPrioritySettings priority); |
263 const guint32 codecID, const TMMFPrioritySettings priority, |
|
264 const gint retrytime); |
263 |
265 |
264 gint SetCodecCi(); |
266 gint SetCodecCi(); |
265 void Start(); |
267 void Start(const gint retrytime); |
266 void Stop(); |
268 void Stop(); |
267 void BufferEmptied(); |
269 void BufferEmptied(); |
268 gint SetGain(const guint gain); |
270 gint SetGain(const guint gain); |
269 gint GetGain(guint& gain); |
271 gint GetGain(guint& gain); |
270 gint GetMaxGain(guint& gain); |
272 gint GetMaxGain(guint& gain); |
282 gint GetVad(const TMSFormatType fmttype, gboolean& vad); |
284 gint GetVad(const TMSFormatType fmttype, gboolean& vad); |
283 |
285 |
284 protected: |
286 protected: |
285 TMSIPUplink(TMSIPDevSoundObserver& observer); |
287 TMSIPUplink(TMSIPDevSoundObserver& observer); |
286 void ConstructL(const guint32 codecID, |
288 void ConstructL(const guint32 codecID, |
287 const TMMFPrioritySettings priority); |
289 const TMMFPrioritySettings priority, const gint retrytime); |
288 |
290 |
289 private: |
291 private: |
290 void SetCodecCiL(); |
292 void SetCodecCiL(); |
291 |
293 |
292 #ifdef __USE_GSTREAMER__ |
294 #ifdef __USE_GSTREAMER__ |