38 public TMSDTMFTonePlayerObserver |
38 public TMSDTMFTonePlayerObserver |
39 { |
39 { |
40 public: |
40 public: |
41 // Constractor |
41 // Constractor |
42 static TMSCallIPAdpt* NewL(); |
42 static TMSCallIPAdpt* NewL(); |
43 |
|
44 virtual ~TMSCallIPAdpt(); |
43 virtual ~TMSCallIPAdpt(); |
45 virtual gint PostConstruct(); |
44 virtual gint PostConstruct(); |
46 |
45 |
|
46 // From TMSStream |
47 virtual gint CreateStream(TMSCallType callType, TMSStreamType strmType, |
47 virtual gint CreateStream(TMSCallType callType, TMSStreamType strmType, |
48 gint& outStrmId); |
48 gint& outStrmId); |
49 virtual gint InitStreamL(TMSCallType callType, TMSStreamType strmType, |
49 virtual gint InitStream(TMSCallType callType, TMSStreamType strmType, |
50 gint strmId, TMSFormatType frmtType, const RMessage2& aMessage); |
50 gint strmId, TMSFormatType frmtType, const RMessage2& message); |
51 virtual gint StartStream(TMSCallType callType, TMSStreamType strmType, |
51 virtual gint StartStream(TMSCallType callType, TMSStreamType strmType, |
52 gint strmId); |
52 gint strmId); |
53 virtual gint PauseStream(TMSCallType callType, TMSStreamType strmType, |
53 virtual gint PauseStream(TMSCallType callType, TMSStreamType strmType, |
54 gint strmId); |
54 gint strmId); |
55 virtual gint StopStream(TMSCallType callType, TMSStreamType strmType, |
55 virtual gint StopStream(TMSCallType callType, TMSStreamType strmType, |
64 TMSStreamType strmType, gint strmId, guint datasize); |
64 TMSStreamType strmType, gint strmId, guint datasize); |
65 virtual gint GetDataXferBufferHndl(const TMSCallType callType, |
65 virtual gint GetDataXferBufferHndl(const TMSCallType callType, |
66 const TMSStreamType strmType, const gint strmId, |
66 const TMSStreamType strmType, const gint strmId, |
67 const guint32 key, RChunk& chunk); |
67 const guint32 key, RChunk& chunk); |
68 |
68 |
|
69 // From TMS effects |
69 virtual gint GetMaxVolume(guint& volume); |
70 virtual gint GetMaxVolume(guint& volume); |
70 virtual gint SetVolume(const guint volume); |
71 virtual gint SetVolume(const guint volume); |
71 virtual gint GetVolume(guint& volume); |
72 virtual gint GetVolume(guint& volume); |
72 virtual gint GetMaxGain(guint& gain); |
73 virtual gint GetMaxGain(guint& gain); |
73 virtual gint SetGain(const guint gain); |
74 virtual gint SetGain(const guint gain); |
77 virtual gint GetGlobalVolume(guint& volume); |
78 virtual gint GetGlobalVolume(guint& volume); |
78 virtual gint GetGlobalMaxGain(guint& gain); |
79 virtual gint GetGlobalMaxGain(guint& gain); |
79 virtual gint SetGlobalGain(const guint gain); |
80 virtual gint SetGlobalGain(const guint gain); |
80 virtual gint GetGlobalGain(guint& gain); |
81 virtual gint GetGlobalGain(guint& gain); |
81 |
82 |
|
83 // From TMS formats |
82 virtual gint GetCodecMode(const TMSFormatType fmttype, |
84 virtual gint GetCodecMode(const TMSFormatType fmttype, |
83 const TMSStreamType strmtype, gint& mode); |
85 const TMSStreamType strmtype, gint& mode); |
84 virtual gint SetCodecMode(const TMSFormatType fmttype, |
86 virtual gint SetCodecMode(const TMSFormatType fmttype, |
85 const TMSStreamType strmtype, const gint mode); |
87 const TMSStreamType strmtype, const gint mode); |
86 virtual gint GetSupportedBitRatesCount(guint& count); |
88 virtual gint GetSupportedBitRatesCount(guint& count); |
92 virtual gint GetCNG(const TMSFormatType fmttype, gboolean& cng); |
94 virtual gint GetCNG(const TMSFormatType fmttype, gboolean& cng); |
93 virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng); |
95 virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng); |
94 virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc); |
96 virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc); |
95 virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc); |
97 virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc); |
96 |
98 |
|
99 // From TMS audio output |
97 virtual gint SetOutput(TMSAudioOutput output); |
100 virtual gint SetOutput(TMSAudioOutput output); |
98 virtual gint GetOutput(TMSAudioOutput& output); |
101 virtual gint GetOutput(TMSAudioOutput& output); |
99 virtual gint GetPreviousOutput(TMSAudioOutput& output); |
102 virtual gint GetPreviousOutput(TMSAudioOutput& output); |
100 virtual gint GetAvailableOutputsL(TInt& count, CBufFlat*& outputsbuffer); |
103 virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuffer); |
101 |
104 |
|
105 // From TMSDTMF |
102 virtual gint StartDTMF(TMSStreamType streamtype, TDes& dtmfstring); |
106 virtual gint StartDTMF(TMSStreamType streamtype, TDes& dtmfstring); |
103 virtual gint StopDTMF(TMSStreamType streamtype); |
107 virtual gint StopDTMF(TMSStreamType streamtype); |
104 virtual gint ContinueDTMF(TBool continuesending); |
108 virtual gint ContinueDTMF(gboolean continuesending); |
105 |
109 |
|
110 // From TMS codec formats |
106 gint SetIlbcCodecMode(const gint mode, const TMSStreamType strmtype); |
111 gint SetIlbcCodecMode(const gint mode, const TMSStreamType strmtype); |
107 gint GetIlbcCodecMode(gint& mode, const TMSStreamType strmtype); |
112 gint GetIlbcCodecMode(gint& mode, const TMSStreamType strmtype); |
108 gint SetG711CodecMode(const gint mode, const TMSStreamType strmtype); |
113 gint SetG711CodecMode(const gint mode, const TMSStreamType strmtype); |
109 gint GetG711CodecMode(gint& mode, const TMSStreamType strmtype); |
114 gint GetG711CodecMode(gint& mode, const TMSStreamType strmtype); |
110 gint FrameModeRqrdForEC(gboolean& frmodereq); |
115 gint FrameModeRqrdForEC(gboolean& frmodereq); |
111 gint SetFrameMode(const gboolean frmode); |
116 gint SetFrameMode(const gboolean frmode); |
112 gint GetFrameMode(gboolean& frmode); |
117 gint GetFrameMode(gboolean& frmode); |
113 gint ConcealErrorForNextBuffer(); |
118 gint ConcealErrorForNextBuffer(); |
114 gint BadLsfNextBuffer(); |
119 gint BadLsfNextBuffer(); |
115 |
120 |
116 gint OpenDownlinkL(const RMessage2& aMessage); |
121 gint OpenDownlinkL(const RMessage2& message); |
117 gint OpenUplinkL(const RMessage2& aMessage); |
122 gint OpenUplinkL(const RMessage2& message); |
118 void SetFormat(const gint strmId, const TUint32 aFormat); |
123 void SetFormat(const gint strmId, const guint32 aFormat); |
119 |
124 |
120 void BufferFilledL(TUint dataSize); |
125 void BufferFilledL(guint dataSize); |
121 void BufferEmptiedL(); |
126 void BufferEmptiedL(); |
122 gint GetDataXferChunkHndl(const TMSStreamType strmType, |
127 gint GetDataXferChunkHndl(const TMSStreamType strmType, |
123 const TUint32 key, RChunk& chunk); |
128 const guint32 key, RChunk& chunk); |
124 |
129 |
125 //From DTMFTonePlayerObserver |
130 //From DTMFTonePlayerObserver |
126 void DTMFInitCompleted(TInt error); |
131 void DTMFInitCompleted(gint error); |
127 void DTMFToneFinished(TInt error); |
132 void DTMFToneFinished(gint error); |
128 |
133 |
129 private: |
134 private: |
130 void ConstructL(); |
135 void ConstructL(); |
131 TMSCallIPAdpt(); |
136 TMSCallIPAdpt(); |
132 |
137 |
133 void NotifyClient(const gint strmId, const TInt aCommand, |
138 gint InitDTMF(TMSStreamType strmtype); |
134 const TInt aStatus = KErrNone, const TInt64 aInt64 = TInt64(0)); |
139 void NotifyClient(const gint strmId, const gint aCommand, |
135 //void DetermineG711FrameRateL(); //G711 10/20ms |
140 const gint aStatus = KErrNone, const gint64 aInt64 = gint64(0)); |
136 void GetSupportedBitRatesL(CBufFlat*& brbuffer); |
141 void GetSupportedBitRatesL(CBufFlat*& brbuffer); |
137 |
142 |
138 private: |
143 private: |
139 gint iNextStreamId; |
144 gint iNextStreamId; |
140 gboolean iUplinkInitialized; |
145 gboolean iUplinkInitialized; |