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 |
32 |
33 // From TMSStream |
33 // From TMSStream |
34 virtual gint CreateStream(TMSCallType callType, |
34 virtual gint CreateStream(const TMSCallType callType, |
35 TMSStreamType strmType, gint& outStrmId) = 0; |
35 const TMSStreamType strmType, gint& outStrmId) = 0; |
36 virtual gint InitStream(TMSCallType callType, TMSStreamType strmType, |
36 virtual gint InitStream(const TMSCallType callType, |
37 gint strmId, TMSFormatType frmtType, const RMessage2& aMessage) = 0; |
37 const TMSStreamType strmType, const gint strmId, |
38 virtual gint StartStream(TMSCallType callType, |
38 const TMSFormatType frmtType, const RMessage2& aMessage) = 0; |
39 TMSStreamType strmType, gint strmId) = 0; |
39 virtual gint StartStream(const TMSCallType callType, |
40 virtual gint PauseStream(TMSCallType callType, |
40 const TMSStreamType strmType, const gint strmId) = 0; |
41 TMSStreamType strmType, gint strmId) = 0; |
41 virtual gint PauseStream(const TMSCallType callType, |
42 virtual gint StopStream(TMSCallType callType, TMSStreamType strmType, |
42 const TMSStreamType strmType, const gint strmId) = 0; |
43 gint strmId) = 0; |
43 virtual gint StopStream(const TMSCallType callType, |
44 virtual gint DeinitStream(TMSCallType callType, |
44 const TMSStreamType strmType, const gint strmId) = 0; |
45 TMSStreamType strmType, gint strmId) = 0; |
45 virtual gint DeinitStream(const TMSCallType callType, |
46 virtual gint DeleteStream(TMSCallType callType, |
46 const TMSStreamType strmType, const gint strmId) = 0; |
47 TMSStreamType strmType, gint strmId) = 0; |
47 virtual gint DeleteStream(const TMSCallType callType, |
48 virtual gint DataXferBufferEmptied(TMSCallType callType, |
48 const TMSStreamType strmType, const gint strmId) = 0; |
49 TMSStreamType strmType, gint strmId) = 0; |
49 virtual gint DataXferBufferEmptied(const TMSCallType callType, |
50 virtual gint DataXferBufferFilled(TMSCallType callType, |
50 const TMSStreamType strmType, const gint strmId) = 0; |
51 TMSStreamType strmType, gint strmId, guint datasize) = 0; |
51 virtual gint DataXferBufferFilled(const TMSCallType callType, |
|
52 const TMSStreamType strmType, const gint strmId, |
|
53 const guint datasize) = 0; |
52 virtual gint GetDataXferBufferHndl(const TMSCallType callType, |
54 virtual gint GetDataXferBufferHndl(const TMSCallType callType, |
53 const TMSStreamType strmType, const gint strmId, |
55 const TMSStreamType strmType, const gint strmId, |
54 const guint32 key, RChunk& chunk) = 0; |
56 const guint32 key, RChunk& chunk) = 0; |
55 |
57 |
56 // From TMS effects |
58 // From TMS effects |
82 virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng) = 0; |
84 virtual gint SetCNG(const TMSFormatType fmttype, const gboolean cng) = 0; |
83 virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc) = 0; |
85 virtual gint GetPlc(const TMSFormatType fmttype, gboolean& plc) = 0; |
84 virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc) = 0; |
86 virtual gint SetPlc(const TMSFormatType fmttype, const gboolean plc) = 0; |
85 |
87 |
86 // From TMS routing |
88 // From TMS routing |
87 virtual gint SetOutput(TMSAudioOutput output) = 0; |
89 virtual gint SetOutput(const TMSAudioOutput output) = 0; |
88 virtual gint GetOutput(TMSAudioOutput& output) = 0; |
90 virtual gint GetOutput(TMSAudioOutput& output) = 0; |
89 virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0; |
91 virtual gint GetPreviousOutput(TMSAudioOutput& output) = 0; |
90 virtual gint GetAvailableOutputsL(gint& count, |
92 virtual gint GetAvailableOutputsL(gint& count, CBufFlat*& outputsbuf) = 0; |
91 CBufFlat*& outputsbuffer) = 0; |
|
92 |
93 |
93 protected: |
94 protected: |
94 TMSCallAdpt(); |
95 TMSCallAdpt(); |
95 virtual gint PostConstruct(); |
96 virtual gint PostConstruct() = 0; |
96 |
97 |
97 protected: |
98 protected: |
98 gint iGlobalVol; |
99 gint iGlobalVol; |
99 gint iGlobalGain; |
100 gint iGlobalGain; |
100 }; |
101 }; |