summaryrefslogtreecommitdiff
path: root/src/lib/config.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2012-07-31 19:38:28 +0100
committerCarl Hetherington <cth@carlh.net>2012-07-31 19:38:28 +0100
commit5d0f01f04f85280a562ac9da8f58ad0c3489f7aa (patch)
tree7b7639d407e2c2b475cdfe21669831584bc70851 /src/lib/config.cc
parent75be8cbd1d3307ea62fe8e79543ca518f4ee7bc2 (diff)
Basic support for calculating audio gains based on the sound processor's gain curve.
Diffstat (limited to 'src/lib/config.cc')
-rw-r--r--src/lib/config.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/lib/config.cc b/src/lib/config.cc
index 92044d81a..53674645d 100644
--- a/src/lib/config.cc
+++ b/src/lib/config.cc
@@ -27,6 +27,7 @@
#include "scaler.h"
#include "screen.h"
#include "filter.h"
+#include "sound_processor.h"
using namespace std;
using namespace boost;
@@ -41,6 +42,7 @@ Config::Config ()
, _j2k_bandwidth (250000000)
, _reference_scaler (Scaler::from_id ("bicubic"))
, _tms_path (".")
+ , _sound_processor (SoundProcessor::from_id ("dolby_cp750"))
{
ifstream f (file().c_str ());
string line;
@@ -85,6 +87,8 @@ Config::Config ()
_tms_user = v;
} else if (k == "tms_password") {
_tms_password = v;
+ } else if (k == "sound_processor") {
+ _sound_processor = SoundProcessor::from_id (v);
}
}
@@ -139,4 +143,5 @@ Config::write () const
f << "tms_path " << _tms_path << "\n";
f << "tms_user " << _tms_user << "\n";
f << "tms_password " << _tms_password << "\n";
+ f << "sound_processor " << _sound_processor->id ();
}