]> git.sesse.net Git - casparcg/blob - mixer/audio/audio_transform.cpp
59655418d6f455e18c3bfaca698022b2efac57a1
[casparcg] / mixer / audio / audio_transform.cpp
1 #include "../../stdafx.h"\r
2 \r
3 #include "audio_transform.h"\r
4 \r
5 namespace caspar { namespace core {\r
6         \r
7 audio_transform::audio_transform()\r
8         : gain_(1.0){}\r
9 \r
10 void audio_transform::set_gain(double value)\r
11 {\r
12         gain_ = value;\r
13 }\r
14 \r
15 double audio_transform::get_gain() const\r
16 {\r
17         return gain_;\r
18 }\r
19 \r
20 audio_transform& audio_transform::operator*=(const audio_transform &other) \r
21 {\r
22         gain_ *= other.gain_;\r
23         return *this;\r
24 }\r
25 \r
26 const audio_transform audio_transform::operator*(const audio_transform &other) const\r
27 {\r
28         return audio_transform(*this) *= other;\r
29 }\r
30 \r
31 }}