23 using namespace QTMS; |
23 using namespace QTMS; |
24 using namespace TMS; |
24 using namespace TMS; |
25 |
25 |
26 QTMSGlobalVolEffect::QTMSGlobalVolEffect() : |
26 QTMSGlobalVolEffect::QTMSGlobalVolEffect() : |
27 iEffect(NULL) |
27 iEffect(NULL) |
28 { |
28 { |
29 } |
29 } |
30 |
30 |
31 QTMSGlobalVolEffect::~QTMSGlobalVolEffect() |
31 QTMSGlobalVolEffect::~QTMSGlobalVolEffect() |
32 { |
32 { |
33 delete (static_cast<TMSGlobalVolEffect*>(iEffect)); |
33 delete (static_cast<TMSGlobalVolEffect*> (iEffect)); |
34 } |
34 } |
35 |
35 |
36 gint QTMSGlobalVolEffect::GetLevel(guint& level) |
36 gint QTMSGlobalVolEffect::GetLevel(guint& level) |
37 { |
37 { |
38 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
38 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
39 if (iEffect) |
39 if (iEffect) { |
40 { |
|
41 status = static_cast<TMSGlobalVolEffect*> (iEffect)->GetLevel(level); |
40 status = static_cast<TMSGlobalVolEffect*> (iEffect)->GetLevel(level); |
42 } |
41 } |
43 return status; |
42 return status; |
44 } |
43 } |
45 |
44 |
46 gint QTMSGlobalVolEffect::SetLevel(const guint level) |
45 gint QTMSGlobalVolEffect::SetLevel(const guint level) |
47 { |
46 { |
48 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
47 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
49 if (iEffect) |
48 if (iEffect) { |
50 { |
|
51 status = static_cast<TMSGlobalVolEffect*> (iEffect)->SetLevel(level); |
49 status = static_cast<TMSGlobalVolEffect*> (iEffect)->SetLevel(level); |
52 } |
50 } |
53 return status; |
51 return status; |
54 } |
52 } |
55 |
53 |
56 gint QTMSGlobalVolEffect::GetMaxLevel(guint& level) |
54 gint QTMSGlobalVolEffect::GetMaxLevel(guint& level) |
57 { |
55 { |
58 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
56 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
59 if (iEffect) |
57 if (iEffect) { |
60 { |
58 status = static_cast<TMSGlobalVolEffect*> (iEffect)->GetMaxLevel(level); |
61 status = static_cast<TMSGlobalVolEffect*> (iEffect)->GetMaxLevel( |
59 } |
62 level); |
|
63 } |
|
64 return status; |
60 return status; |
65 } |
61 } |
66 |
62 |
67 gint QTMSGlobalVolEffect::GetType(QTMSSourceType& sourcetype) |
63 gint QTMSGlobalVolEffect::GetType(QTMSSourceType& sourcetype) |
68 { |
64 { |
69 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
65 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
70 if (iEffect) |
66 if (iEffect) { |
71 { |
67 status = static_cast<TMSGlobalVolEffect*> (iEffect)->GetType(sourcetype); |
72 status = static_cast<TMSGlobalVolEffect*> (iEffect)->GetType( |
68 } |
73 sourcetype); |
|
74 } |
|
75 return status; |
69 return status; |
76 } |
70 } |
77 |
71 |
78 // End of file |
72 // End of file |