equal
deleted
inserted
replaced
21 #include <glib.h> |
21 #include <glib.h> |
22 #include "tmscsdevsound.h" |
22 #include "tmscsdevsound.h" |
23 |
23 |
24 namespace TMS { |
24 namespace TMS { |
25 |
25 |
26 // |
|
27 class TMSCSPDevSoundObserver; |
|
28 |
|
29 /** |
26 /** |
30 * Provides Downlink functionality. |
27 * Provides Downlink stream functionality. |
31 * |
28 * |
32 */ |
29 */ |
33 NONSHARABLE_CLASS(TMSCSDownlink) : public TMSCSPDevSound |
30 NONSHARABLE_CLASS(TMSCSDownlink) : public TMSCSDevSound |
34 { |
31 { |
35 public: |
32 public: |
36 |
33 |
37 static TMSCSDownlink* NewL(TMSCSPDevSoundObserver& aObserver); |
34 static TMSCSDownlink* NewL(TMSCSDevSoundObserver& observer); |
38 |
35 |
39 virtual ~TMSCSDownlink(); |
36 virtual ~TMSCSDownlink(); |
40 |
37 |
41 /** |
38 /** |
42 * Sets volume. |
39 * Sets volume. |
43 * @param aVolume Volume. |
40 * @param volume Volume. |
44 */ |
41 */ |
45 void SetVolume(gint aVolume); |
42 void SetVolume(gint volume); |
46 |
43 |
47 /** |
44 /** |
48 * Gets volume. |
45 * Gets volume. |
49 * @return Current volume. |
46 * @return Current volume. |
50 */ |
47 */ |
58 |
55 |
59 // from base class MDevSoundObserver |
56 // from base class MDevSoundObserver |
60 |
57 |
61 /** |
58 /** |
62 * From MDevSoundObserver. |
59 * From MDevSoundObserver. |
63 * Indication from devsound that stream (Downlink) has been activated |
60 * Indication from the devsound that Downlink has been activated |
64 * successfully. |
61 * successfully. |
65 */ |
62 */ |
66 void BufferToBeFilled(CMMFBuffer* /*aBuffer*/); |
63 void BufferToBeFilled(CMMFBuffer* /*aBuffer*/); |
67 |
64 |
68 /** |
65 /** |
69 * From MDevSoundObserver. |
66 * From MDevSoundObserver. |
70 * Indication from devsound that activation of stream( Downlink) |
67 * Indication from devsound that Downlink activation has failed. |
71 * failed. |
|
72 */ |
68 */ |
73 void PlayError(TInt aErrorCode); |
69 void PlayError(TInt aErrorCode); |
74 |
70 |
75 private: |
71 private: |
76 |
72 |
77 /** |
73 /** |
78 * From CSPDevSound. |
74 * From TMSCSDevSound. |
79 * Tries to activate the mic stream. |
75 * Tries to activate the mic stream. |
80 */ |
76 */ |
81 void DoActivateL(); |
77 void DoActivateL(); |
82 |
78 |
83 protected: |
79 protected: |
84 |
80 |
85 TMSCSDownlink(TMSCSPDevSoundObserver& aObserver); |
81 TMSCSDownlink(TMSCSDevSoundObserver& observer); |
86 |
|
87 void ConstructL(); |
82 void ConstructL(); |
88 }; |
83 }; |
89 |
84 |
90 } //namespace TMS |
85 } //namespace TMS |
91 |
86 |