44 virtual ~TMSCallCSAdpt(); |
44 virtual ~TMSCallCSAdpt(); |
45 virtual gint PostConstruct(); |
45 virtual gint PostConstruct(); |
46 |
46 |
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, |
63 virtual gint DataXferBufferFilled(TMSCallType callType, |
63 virtual gint DataXferBufferFilled(TMSCallType callType, |
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 |
|
69 // From TMS effects |
68 virtual gint GetMaxVolume(guint& volume); |
70 virtual gint GetMaxVolume(guint& volume); |
69 virtual gint SetVolume(const guint volume); |
71 virtual gint SetVolume(const guint volume); |
70 virtual gint GetVolume(guint& volume); |
72 virtual gint GetVolume(guint& volume); |
71 virtual gint GetMaxGain(guint& gain); |
73 virtual gint GetMaxGain(guint& gain); |
72 virtual gint SetGain(const guint gain); |
74 virtual gint SetGain(const guint gain); |
76 virtual gint GetGlobalVolume(guint& volume); |
78 virtual gint GetGlobalVolume(guint& volume); |
77 virtual gint GetGlobalMaxGain(guint& gain); |
79 virtual gint GetGlobalMaxGain(guint& gain); |
78 virtual gint SetGlobalGain(const guint gain); |
80 virtual gint SetGlobalGain(const guint gain); |
79 virtual gint GetGlobalGain(guint& gain); |
81 virtual gint GetGlobalGain(guint& gain); |
80 |
82 |
|
83 // From TMS formats |
81 virtual gint GetCodecMode(const TMSFormatType fmttype, |
84 virtual gint GetCodecMode(const TMSFormatType fmttype, |
82 const TMSStreamType strmtype, gint& mode); |
85 const TMSStreamType strmtype, gint& mode); |
83 virtual gint SetCodecMode(const TMSFormatType fmttype, |
86 virtual gint SetCodecMode(const TMSFormatType fmttype, |
84 const TMSStreamType strmtype, const gint mode); |
87 const TMSStreamType strmtype, const gint mode); |
85 virtual gint GetSupportedBitRatesCount(guint& count); |
88 virtual gint GetSupportedBitRatesCount(guint& count); |
91 virtual gint GetCNG(const TMSFormatType fmttype, gboolean& cng); |
94 virtual gint GetCNG(const TMSFormatType fmttype, gboolean& cng); |
92 virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng); |
95 virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng); |
93 virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc); |
96 virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc); |
94 virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc); |
97 virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc); |
95 |
98 |
|
99 // From TMS audio routing |
96 virtual gint SetOutput(TMSAudioOutput output); |
100 virtual gint SetOutput(TMSAudioOutput output); |
97 virtual gint GetOutput(TMSAudioOutput& output); |
101 virtual gint GetOutput(TMSAudioOutput& output); |
98 virtual gint GetPreviousOutput(TMSAudioOutput& output); |
102 virtual gint GetPreviousOutput(TMSAudioOutput& output); |
99 virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuffer); |
103 virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuffer); |
100 |
|
101 void NotifyClient(const gint strmId, const gint aCommand, |
|
102 const gint aStatus = KErrNone, const gint64 aInt64 = TInt64(0)); |
|
103 |
104 |
104 //From TMSCSPDevSoundObserver |
105 //From TMSCSPDevSoundObserver |
105 void DownlinkInitCompleted(TInt status); |
106 void DownlinkInitCompleted(TInt status); |
106 void UplinkInitCompleted(TInt status); |
107 void UplinkInitCompleted(TInt status); |
107 void UplinkActivatedSuccessfully(); |
108 void UplinkActivatedSuccessfully(); |
108 void DownlinkActivatedSuccessfully(); |
109 void DownlinkActivatedSuccessfully(); |
109 void UplinkActivationFailed(); |
110 void UplinkActivationFailed(); |
110 void DownlinkActivationFailed(); |
111 void DownlinkActivationFailed(); |
111 |
112 |
112 protected: |
113 private: |
113 void AvailableOutputsChanged( |
114 void AvailableOutputsChanged( |
114 CTelephonyAudioRouting& aTelephonyAudioRouting); |
115 CTelephonyAudioRouting& aTelephonyAudioRouting); |
115 void OutputChanged(CTelephonyAudioRouting& aTelephonyAudioRouting); |
116 void OutputChanged(CTelephonyAudioRouting& aTelephonyAudioRouting); |
116 void SetOutputComplete(CTelephonyAudioRouting& aTelephonyAudioRouting, |
117 void SetOutputComplete(CTelephonyAudioRouting& aTelephonyAudioRouting, |
117 gint aError); |
118 gint aError); |
118 void GetSupportedBitRatesL(CBufFlat*& brbuffer); |
119 void GetSupportedBitRatesL(CBufFlat*& brbuffer); |
|
120 void NotifyClient(const gint strmId, const gint command, |
|
121 const gint status = KErrNone, const gint64 int64 = TInt64(0)); |
119 |
122 |
120 private: |
123 private: |
121 gint iNextStreamId; |
124 gint iNextStreamId; |
122 |
125 |
123 TMSCSUplink* iCSUplink; |
126 TMSCSUplink* iCSUplink; |