projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ff6e242
)
Use XMLNode::set_property in ARDOUR::AudioFileSource class
author
Tim Mayberry
<mojofunk@gmail.com>
Fri, 26 Aug 2016 14:16:29 +0000
(
00:16
+1000)
committer
Tim Mayberry
<mojofunk@gmail.com>
Tue, 18 Apr 2017 23:36:50 +0000
(09:36 +1000)
libs/ardour/audiofilesource.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/audiofilesource.cc
b/libs/ardour/audiofilesource.cc
index 2edd06282b1129b80927b5e9129c88ade9ee0660..690942fb1a4f6e3924516b34f53344f20b9a7201 100644
(file)
--- a/
libs/ardour/audiofilesource.cc
+++ b/
libs/ardour/audiofilesource.cc
@@
-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;
}