Use XMLNode::set_property in ARDOUR::AudioFileSource class
This commit is contained in:
parent
ff6e242a4e
commit
e4c4193640
@ -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;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user