27 class TMSCallAdpt |
27 class TMSCallAdpt |
28 { |
28 { |
29 public: |
29 public: |
30 static gint CreateCallL(gint callType, TMSCallAdpt*& callAdpt); |
30 static gint CreateCallL(gint callType, TMSCallAdpt*& callAdpt); |
31 virtual ~TMSCallAdpt(); |
31 virtual ~TMSCallAdpt(); |
|
32 |
|
33 // From TMSStream |
32 virtual gint CreateStream(TMSCallType callType, |
34 virtual gint CreateStream(TMSCallType callType, |
33 TMSStreamType strmType, gint& outStrmId) = 0; |
35 TMSStreamType strmType, gint& outStrmId) = 0; |
34 virtual gint InitStreamL(TMSCallType callType, |
36 virtual gint InitStream(TMSCallType callType, TMSStreamType strmType, |
35 TMSStreamType strmType, gint strmId, TMSFormatType frmtType, |
37 gint strmId, TMSFormatType frmtType, const RMessage2& aMessage) = 0; |
36 const RMessage2& aMessage) = 0; |
|
37 virtual gint StartStream(TMSCallType callType, |
38 virtual gint StartStream(TMSCallType callType, |
38 TMSStreamType strmType, gint strmId) = 0; |
39 TMSStreamType strmType, gint strmId) = 0; |
39 virtual gint PauseStream(TMSCallType callType, |
40 virtual gint PauseStream(TMSCallType callType, |
40 TMSStreamType strmType, gint strmId) = 0; |
41 TMSStreamType strmType, gint strmId) = 0; |
41 virtual gint StopStream(TMSCallType callType, TMSStreamType strmType, |
42 virtual gint StopStream(TMSCallType callType, TMSStreamType strmType, |
50 TMSStreamType strmType, gint strmId, guint datasize) = 0; |
51 TMSStreamType strmType, gint strmId, guint datasize) = 0; |
51 virtual gint GetDataXferBufferHndl(const TMSCallType callType, |
52 virtual gint GetDataXferBufferHndl(const TMSCallType callType, |
52 const TMSStreamType strmType, const gint strmId, |
53 const TMSStreamType strmType, const gint strmId, |
53 const guint32 key, RChunk& chunk) = 0; |
54 const guint32 key, RChunk& chunk) = 0; |
54 |
55 |
|
56 // From TMS effects |
55 virtual gint GetMaxVolume(guint& volume) = 0; |
57 virtual gint GetMaxVolume(guint& volume) = 0; |
56 virtual gint SetVolume(const guint volume) = 0; |
58 virtual gint SetVolume(const guint volume) = 0; |
57 virtual gint GetVolume(guint& volume) = 0; |
59 virtual gint GetVolume(guint& volume) = 0; |
58 virtual gint GetMaxGain(guint& gain) = 0; |
60 virtual gint GetMaxGain(guint& gain) = 0; |
59 virtual gint SetGain(const guint gain) = 0; |
61 virtual gint SetGain(const guint gain) = 0; |
63 virtual gint GetGlobalVolume(guint& volume) = 0; |
65 virtual gint GetGlobalVolume(guint& volume) = 0; |
64 virtual gint GetGlobalMaxGain(guint& gain) = 0; |
66 virtual gint GetGlobalMaxGain(guint& gain) = 0; |
65 virtual gint SetGlobalGain(const guint gain) = 0; |
67 virtual gint SetGlobalGain(const guint gain) = 0; |
66 virtual gint GetGlobalGain(guint& gain) = 0; |
68 virtual gint GetGlobalGain(guint& gain) = 0; |
67 |
69 |
|
70 // From TMS formats |
68 virtual gint GetCodecMode(const TMSFormatType fmttype, |
71 virtual gint GetCodecMode(const TMSFormatType fmttype, |
69 const TMSStreamType strmtype, gint& mode) = 0; |
72 const TMSStreamType strmtype, gint& mode) = 0; |
70 virtual gint SetCodecMode(const TMSFormatType fmttype, |
73 virtual gint SetCodecMode(const TMSFormatType fmttype, |
71 const TMSStreamType strmtype, const gint mode) = 0; |
74 const TMSStreamType strmtype, const gint mode) = 0; |
72 virtual gint GetSupportedBitRatesCount(guint& count) = 0; |
75 virtual gint GetSupportedBitRatesCount(guint& count) = 0; |
77 virtual gint SetVAD(const TMSFormatType fmttype, const gboolean vad) = 0; |
80 virtual gint SetVAD(const TMSFormatType fmttype, const gboolean vad) = 0; |
78 virtual gint GetCNG(const TMSFormatType fmttype, gboolean& cng) = 0; |
81 virtual gint GetCNG(const TMSFormatType fmttype, gboolean& cng) = 0; |
79 virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng) = 0; |
82 virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng) = 0; |
80 virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc) = 0; |
83 virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc) = 0; |
81 virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc) = 0; |
84 virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc) = 0; |
|
85 |
|
86 // From TMS routing |
82 virtual gint SetOutput(TMSAudioOutput output) = 0; |
87 virtual gint SetOutput(TMSAudioOutput output) = 0; |
83 virtual gint GetOutput(TMSAudioOutput& output) = 0; |
88 virtual gint GetOutput(TMSAudioOutput& output) = 0; |
84 virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0; |
89 virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0; |
85 virtual gint GetAvailableOutputsL(gint& count, |
90 virtual gint GetAvailableOutputsL(gint& count, |
86 CBufFlat*& outputsbuffer) = 0; |
91 CBufFlat*& outputsbuffer) = 0; |
|
92 |
|
93 // From TMSDTMF |
87 virtual gint StartDTMF(TMSStreamType streamtype, TDes& dtmfstring) = 0; |
94 virtual gint StartDTMF(TMSStreamType streamtype, TDes& dtmfstring) = 0; |
88 virtual gint StopDTMF(TMSStreamType streamtype) = 0; |
95 virtual gint StopDTMF(TMSStreamType streamtype) = 0; |
89 virtual gint ContinueDTMF(TBool continuesending) = 0; |
96 virtual gint ContinueDTMF(TBool continuesending) = 0; |
90 |
97 |
91 protected: |
98 protected: |