13
0

Use XMLNode::set_property in ARDOUR::AudioFileSource class

This commit is contained in:
Tim Mayberry 2016-08-27 00:16:29 +10:00
parent ff6e242a4e
commit e4c4193640

View File

@ -209,12 +209,9 @@ AudioFileSource::get_state ()
{
LocaleGuard lg;
XMLNode& root (AudioSource::get_state());
char buf[32];
snprintf (buf, sizeof (buf), "%u", _channel);
root.add_property (X_("channel"), buf);
root.add_property (X_("origin"), _origin);
snprintf (buf, sizeof (buf), "%f", _gain);
root.add_property (X_("gain"), buf);
root.set_property (X_("channel"), _channel);
root.set_property (X_("origin"), _origin);
root.set_property (X_("gain"), _gain);
return root;
}