20 |
20 |
21 using namespace QTMS; |
21 using namespace QTMS; |
22 using namespace TMS; |
22 using namespace TMS; |
23 |
23 |
24 QTMSG711Format::QTMSG711Format() |
24 QTMSG711Format::QTMSG711Format() |
25 { |
25 { |
26 } |
26 } |
27 |
27 |
28 QTMSG711Format::~QTMSG711Format() |
28 QTMSG711Format::~QTMSG711Format() |
29 { |
29 { |
30 } |
30 } |
31 |
31 |
32 gint QTMSG711Format::SetMode(const QTMSG711CodecMode aMode) |
32 gint QTMSG711Format::SetMode(const QTMSG711CodecMode aMode) |
33 { |
33 { |
34 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
34 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
35 if (iFormat) |
35 if (iFormat) { |
36 { |
|
37 status = static_cast<TMSG711Format*> (iFormat)->SetMode(aMode); |
36 status = static_cast<TMSG711Format*> (iFormat)->SetMode(aMode); |
38 } |
37 } |
39 return status; |
38 return status; |
40 } |
39 } |
41 |
40 |
42 gint QTMSG711Format::GetMode(QTMSG711CodecMode& aMode) |
41 gint QTMSG711Format::GetMode(QTMSG711CodecMode& aMode) |
43 { |
42 { |
44 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
43 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
45 if (iFormat) |
44 if (iFormat) { |
46 { |
|
47 status = static_cast<TMSG711Format*> (iFormat)->GetMode(aMode); |
45 status = static_cast<TMSG711Format*> (iFormat)->GetMode(aMode); |
48 } |
46 } |
49 return status; |
47 return status; |
50 } |
48 } |
51 |
49 |
52 gint QTMSG711Format::SetCNG(const gboolean aCng) |
50 gint QTMSG711Format::SetCNG(const gboolean aCng) |
53 { |
51 { |
54 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
52 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
55 if (iFormat) |
53 if (iFormat) { |
56 { |
|
57 status = static_cast<TMSG711Format*> (iFormat)->SetCNG(aCng); |
54 status = static_cast<TMSG711Format*> (iFormat)->SetCNG(aCng); |
58 } |
55 } |
59 return status; |
56 return status; |
60 } |
57 } |
61 |
58 |
62 gint QTMSG711Format::GetCNG(gboolean& aCng) |
59 gint QTMSG711Format::GetCNG(gboolean& aCng) |
63 { |
60 { |
64 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
61 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
65 if (iFormat) |
62 if (iFormat) { |
66 { |
|
67 status = static_cast<TMSG711Format*> (iFormat)->GetCNG(aCng); |
63 status = static_cast<TMSG711Format*> (iFormat)->GetCNG(aCng); |
68 } |
64 } |
69 return status; |
65 return status; |
70 } |
66 } |
71 |
67 |
72 gint QTMSG711Format::SetPlc(const gboolean aPlc) |
68 gint QTMSG711Format::SetPlc(const gboolean aPlc) |
73 { |
69 { |
74 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
70 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
75 if (iFormat) |
71 if (iFormat) { |
76 { |
|
77 status = static_cast<TMSG711Format*> (iFormat)->SetPlc(aPlc); |
72 status = static_cast<TMSG711Format*> (iFormat)->SetPlc(aPlc); |
78 } |
73 } |
79 return status; |
74 return status; |
80 } |
75 } |
81 |
76 |
82 gint QTMSG711Format::GetPlc(gboolean& aPlc) |
77 gint QTMSG711Format::GetPlc(gboolean& aPlc) |
83 { |
78 { |
84 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
79 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
85 if (iFormat) |
80 if (iFormat) { |
86 { |
|
87 status = static_cast<TMSG711Format*> (iFormat)->GetPlc(aPlc); |
81 status = static_cast<TMSG711Format*> (iFormat)->GetPlc(aPlc); |
88 } |
82 } |
89 return status; |
83 return status; |
90 } |
84 } |
91 |
85 |
92 gint QTMSG711Format::SetVADMode(const gboolean aVad) |
86 gint QTMSG711Format::SetVADMode(const gboolean aVad) |
93 { |
87 { |
94 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
88 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
95 if (iFormat) |
89 if (iFormat) { |
96 { |
|
97 status = static_cast<TMSG711Format*> (iFormat)->SetVADMode(aVad); |
90 status = static_cast<TMSG711Format*> (iFormat)->SetVADMode(aVad); |
98 } |
91 } |
99 return status; |
92 return status; |
100 } |
93 } |
101 |
94 |
102 gint QTMSG711Format::GetVADMode(gboolean& aVad) |
95 gint QTMSG711Format::GetVADMode(gboolean& aVad) |
103 { |
96 { |
104 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
97 gint status(QTMS_RESULT_UNINITIALIZED_OBJECT); |
105 if (iFormat) |
98 if (iFormat) { |
106 { |
|
107 status = static_cast<TMSG711Format*> (iFormat)->GetVADMode(aVad); |
99 status = static_cast<TMSG711Format*> (iFormat)->GetVADMode(aVad); |
108 } |
100 } |
109 return status; |
101 return status; |
110 } |
102 } |
111 |
103 |
112 // End of file |
104 // End of file |