diff options
author | Gerald Begumisa <ben_g@users.sourceforge.net> | 2008-12-18 08:07:04 +0000 |
---|---|---|
committer | Gerald Begumisa <ben_g@users.sourceforge.net> | 2008-12-18 08:07:04 +0000 |
commit | 3f5c1d9c9358eb6d7a1f2c75b49446303157fcd4 (patch) | |
tree | 8bce4fff04918d60ed8bed2669f9c21220556d80 /orkbasecxx/Config.cpp | |
parent | 960e134a00df44a2cb3eda87f2d7dcde9fb5156e (diff) |
Added AudioGain filter that allows gain to be increased or reduced on all channels or a per-channel basis. Therefore 3 configuration parameters have been added, which are AudioGain, AudioGainChannel1 and AudioGainChannel2. These parameters take values in Db. Setting the AudioGain applies the gain to both channels. While setting AudioGainChannel1 and AudioGainChannel2 applies gain to channel 1 and channel 2 respectively.
git-svn-id: https://oreka.svn.sourceforge.net/svnroot/oreka/trunk@587 09dcff7a-b715-0410-9601-b79a96267cd0
Diffstat (limited to 'orkbasecxx/Config.cpp')
-rw-r--r-- | orkbasecxx/Config.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/orkbasecxx/Config.cpp b/orkbasecxx/Config.cpp index 08038f7..f3f5cb8 100644 --- a/orkbasecxx/Config.cpp +++ b/orkbasecxx/Config.cpp @@ -73,6 +73,9 @@ Config::Config() m_tapeDurationMinimumSec = TAPE_DURATION_MINIMUM_SEC_DEFAULT; m_transcodingSleepEveryNumFrames = TRANSCODING_SLEEP_EVERY_NUM_FRAMES_DEFAULT; m_transcodingSleepUs = TRANSCODING_SLEEP_US_DEFAULT; + m_audioGain = AUDIO_GAIN_DEFAULT; + m_audioGainChannel1 = AUDIO_GAIN_CHANNEL_1_DEFAULT; + m_audioGainChannel2 = AUDIO_GAIN_CHANNEL_2_DEFAULT; } void Config::Define(Serializer* s) @@ -150,6 +153,9 @@ void Config::Define(Serializer* s) s->IntValue(TAPE_DURATION_MINIMUM_SEC_PARAM, m_tapeDurationMinimumSec); s->IntValue(TRANSCODING_SLEEP_EVERY_NUM_FRAMES_PARAM, m_transcodingSleepEveryNumFrames); s->IntValue(TRANSCODING_SLEEP_US_PARAM, m_transcodingSleepUs); + s->DoubleValue(AUDIO_GAIN_PARAM, m_audioGain); + s->DoubleValue(AUDIO_GAIN_CHANNEL_1_PARAM, m_audioGainChannel1); + s->DoubleValue(AUDIO_GAIN_CHANNEL_2_PARAM, m_audioGainChannel2); } void Config::Validate() |