mmserv/tms/tmscallserver/inc/tmsipcallstream.h
branchRCL_3
changeset 20 0ac9a5310753
parent 19 095bea5f582e
equal deleted inserted replaced
19:095bea5f582e 20:0ac9a5310753
    89         };
    89         };
    90 
    90 
    91 public:
    91 public:
    92     virtual ~TMSIPCallStreamBase();
    92     virtual ~TMSIPCallStreamBase();
    93 
    93 
    94     virtual void Start(const gint retrytime) = 0;
    94     virtual void Start() = 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);
       
   167 
   166 
   168     gint SetCodecCi();
   167     gint SetCodecCi();
   169     void Start(const gint retrytime);
   168     void Start();
   170     void Stop();
   169     void Stop();
   171     void BufferFilled(const guint buflen);
   170     void BufferFilled(const guint buflen);
   172     gint SetVolume(const guint volume);
   171     gint SetVolume(const guint volume);
   173     gint GetVolume(guint& volume);
   172     gint GetVolume(guint& volume);
   174     gint GetMaxVolume(guint& volume);
   173     gint GetMaxVolume(guint& volume);
   193     void GetAudioDeviceL(TMSAudioOutput& output);
   192     void GetAudioDeviceL(TMSAudioOutput& output);
   194 
   193 
   195 protected:
   194 protected:
   196     TMSIPDownlink(TMSIPDevSoundObserver& observer);
   195     TMSIPDownlink(TMSIPDevSoundObserver& observer);
   197     void ConstructL(const guint32 codecID,
   196     void ConstructL(const guint32 codecID,
   198             const TMMFPrioritySettings priority, const gint retrytime);
   197             const TMMFPrioritySettings priority);
   199 
   198 
   200 private:
   199 private:
   201     void SetCodecCiL();
   200     void SetCodecCiL();
   202 
   201 
   203 #ifdef __USE_GSTREAMER__
   202 #ifdef __USE_GSTREAMER__
   258     static void cb_record_raw_handoff(GstElement *sink);
   257     static void cb_record_raw_handoff(GstElement *sink);
   259     static gboolean bus_call(GstBus* bus, GstMessage* msg, gpointer data);
   258     static gboolean bus_call(GstBus* bus, GstMessage* msg, gpointer data);
   260 #endif //__USE_GSTREAMER__
   259 #endif //__USE_GSTREAMER__
   261 
   260 
   262     static TMSIPUplink* NewL(TMSIPDevSoundObserver& observer,
   261     static TMSIPUplink* NewL(TMSIPDevSoundObserver& observer,
   263             const guint32 codecID, const TMMFPrioritySettings priority,
   262             const guint32 codecID, const TMMFPrioritySettings priority);
   264             const gint retrytime);
       
   265 
   263 
   266     gint SetCodecCi();
   264     gint SetCodecCi();
   267     void Start(const gint retrytime);
   265     void Start();
   268     void Stop();
   266     void Stop();
   269     void BufferEmptied();
   267     void BufferEmptied();
   270     gint SetGain(const guint gain);
   268     gint SetGain(const guint gain);
   271     gint GetGain(guint& gain);
   269     gint GetGain(guint& gain);
   272     gint GetMaxGain(guint& gain);
   270     gint GetMaxGain(guint& gain);
   284     gint GetVad(const TMSFormatType fmttype, gboolean& vad);
   282     gint GetVad(const TMSFormatType fmttype, gboolean& vad);
   285 
   283 
   286 protected:
   284 protected:
   287     TMSIPUplink(TMSIPDevSoundObserver& observer);
   285     TMSIPUplink(TMSIPDevSoundObserver& observer);
   288     void ConstructL(const guint32 codecID,
   286     void ConstructL(const guint32 codecID,
   289             const TMMFPrioritySettings priority, const gint retrytime);
   287             const TMMFPrioritySettings priority);
   290 
   288 
   291 private:
   289 private:
   292     void SetCodecCiL();
   290     void SetCodecCiL();
   293 
   291 
   294 #ifdef __USE_GSTREAMER__
   292 #ifdef __USE_GSTREAMER__