diff options
author | David Robillard <d@drobilla.net> | 2012-05-10 06:24:07 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2012-05-10 06:24:07 +0000 |
commit | 0c9e861caa8b1eed5068942edc35d5f91bac816e (patch) | |
tree | b241856ddf49e1b1192f8ea442d1733d9d31b2f2 /src/server/ControlBindings.cpp | |
parent | 8ec295a0f2a40086ed83e8d2ad8ad38c8125bcb4 (diff) | |
download | ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.tar.gz ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.tar.bz2 ingen-0c9e861caa8b1eed5068942edc35d5f91bac816e.zip |
Work towards translatable strings and a cleaner log interface.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4338 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/ControlBindings.cpp')
-rw-r--r-- | src/server/ControlBindings.cpp | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/src/server/ControlBindings.cpp b/src/server/ControlBindings.cpp index ac0d5018..1cf8e969 100644 --- a/src/server/ControlBindings.cpp +++ b/src/server/ControlBindings.cpp @@ -33,7 +33,6 @@ #define LOG(s) s << "[ControlBindings] " using namespace std; -using namespace Raul; namespace Ingen { namespace Server { @@ -68,9 +67,9 @@ ControlBindings::binding_key(const Raul::Atom& binding) const const Ingen::Shared::URIs& uris = *_engine.world()->uris().get(); Key key; if (binding.type() == _engine.world()->forge().Dict) { - const Atom::DictValue& dict = binding.get_dict(); - Atom::DictValue::const_iterator t = dict.find(uris.rdf_type); - Atom::DictValue::const_iterator n; + const Raul::Atom::DictValue& dict = binding.get_dict(); + Raul::Atom::DictValue::const_iterator t = dict.find(uris.rdf_type); + Raul::Atom::DictValue::const_iterator n; if (t == dict.end()) { return key; } else if (t->second == uris.midi_Bender) { @@ -225,14 +224,14 @@ ControlBindings::port_value_to_control(PortImpl* port, float normal = (value - min) / (max - min); if (normal < 0.0f) { - warn << "Value " << value << " (normal " << normal << ") for " + LOG(Raul::warn) << "Value " << value << " (normal " << normal << ") for " << port->path() << " out of range" << endl; normal = 0.0f; } if (normal > 1.0f) { - warn << "Value " << value << " (normal " << normal << ") for " - << port->path() << " out of range" << endl; + LOG(Raul::warn) << "Value " << value << " (normal " << normal << ") for " + << port->path() << " out of range" << endl; normal = 1.0f; } |