{
XMLNode& root (Track::state(full_state));
XMLNode* freeze_node;
- char buf[64];
if (_freeze_record.playlist) {
XMLNode* inode;
for (vector<FreezeRecordProcessorInfo*>::iterator i = _freeze_record.processor_info.begin(); i != _freeze_record.processor_info.end(); ++i) {
inode = new XMLNode (X_("processor"));
- (*i)->id.print (buf, sizeof (buf));
- inode->add_property (X_("id"), buf);
+ inode->add_property (X_ ("id"), (*i)->id.to_s ());
inode->add_child_copy ((*i)->state);
freeze_node->add_child_nocopy (*inode);
node->add_property ("flags", enum_2_string (_flags));
node->add_property ("playlist", _playlist->name());
node->add_property("name", _name);
- id().print (buf, sizeof (buf));
- node->add_property("id", buf);
+ node->add_property ("id", id ().to_s ());
snprintf (buf, sizeof(buf), "%f", _visible_speed);
node->add_property ("speed", buf);
node->add_property ("capture-alignment", enum_2_string (_alignment_choice));
Glib::Threads::Mutex::Lock lm (io_lock);
node->add_property("name", _name);
- id().print (buf, sizeof (buf));
- node->add_property("id", buf);
+ node->add_property ("id", id ().to_s ());
node->add_property ("direction", enum_2_string (_direction));
node->add_property ("default-type", _default_type.to_string());
node->add_child_nocopy(cd_info_node(m->first, m->second));
}
- id().print (buf, sizeof (buf));
- node->add_property("id", buf);
+ node->add_property ("id", id ().to_s ());
node->add_property ("name", name());
snprintf (buf, sizeof (buf), "%" PRId64, start());
node->add_property ("start", buf);
for (vector<FreezeRecordProcessorInfo*>::iterator i = _freeze_record.processor_info.begin(); i != _freeze_record.processor_info.end(); ++i) {
inode = new XMLNode (X_("processor"));
- (*i)->id.print (buf, sizeof(buf));
- inode->add_property (X_("id"), buf);
+ inode->add_property (X_("id"), id().to_s ());
inode->add_child_copy ((*i)->state);
freeze_node->add_child_nocopy (*inode);
node->add_property (X_("name"), _name);
node->add_property (X_("type"), _type.to_string());
- _orig_track_id.print (buf, sizeof (buf));
- node->add_property (X_("orig-track-id"), buf);
+ node->add_property (X_("orig-track-id"), _orig_track_id.to_s ());
string shared_ids;
list<PBD::ID>::const_iterator it = _shared_with_ids.begin();
{
char buf[64];
- _playlist->id().print (buf, sizeof (buf));
- node.add_property ("playlist", buf);
+ node.add_property ("playlist", _playlist->id ().to_s ());
snprintf (buf, sizeof (buf), "%" PRIi64, _playlist_offset);
node.add_property ("offset", buf);
snprintf (buf, sizeof (buf), "%" PRIu64, _playlist_length);
XMLNode* node = new XMLNode (state_node_name);
char buf[64];
- id().print (buf, sizeof (buf));
- node->add_property("id", buf);
+ node->add_property("id", id().to_s ());
node->add_property("name", _name);
node->add_property("active", active() ? "yes" : "no");
Region::state ()
{
XMLNode *node = new XMLNode ("Region");
- char buf[64];
char buf2[64];
LocaleGuard lg;
const char* fe = NULL;
i->second->get_value (*node);
}
- id().print (buf, sizeof (buf));
- node->add_property ("id", buf);
+ node->add_property ("id", id ().to_s ());
node->add_property ("type", _type.to_string());
switch (_first_edit) {
for (uint32_t n=0; n < _sources.size(); ++n) {
snprintf (buf2, sizeof(buf2), "source-%d", n);
- _sources[n]->id().print (buf, sizeof(buf));
- node->add_property (buf2, buf);
+ node->add_property (buf2, _sources[n]->id().to_s ());
}
for (uint32_t n=0; n < _master_sources.size(); ++n) {
snprintf (buf2, sizeof(buf2), "master-source-%d", n);
- _master_sources[n]->id().print (buf, sizeof (buf));
- node->add_property (buf2, buf);
+ node->add_property (buf2, _master_sources[n]->id ().to_s ());
}
/* Only store nested sources for the whole-file region that acts
ProcessorList::iterator i;
char buf[32];
- id().print (buf, sizeof (buf));
- node->add_property("id", buf);
+ node->add_property ("id", id ().to_s ());
node->add_property ("name", _name);
node->add_property("default-type", _default_type.to_string());
node->add_property ("strict-io", _strict_io);
if (_custom_meter_position_noted) {
boost::shared_ptr<Processor> after = _processor_after_last_custom_meter.lock ();
if (after) {
- after->id().print (buf, sizeof (buf));
- node->add_property (X_("processor-after-last-custom-meter"), buf);
+ node->add_property (X_("processor-after-last-custom-meter"), after->id().to_s());
}
}
{
XMLNode *node = new XMLNode ("RouteGroup");
- char buf[64];
- id().print (buf, sizeof (buf));
- node->add_property ("id", buf);
+ node->add_property ("id", id().to_s());
add_properties (*node);
XMLNode* ca = node->add_child (X_("CompoundAssociations"));
for (RegionFactory::CompoundAssociations::iterator i = cassocs.begin(); i != cassocs.end(); ++i) {
- char buf[64];
XMLNode* can = new XMLNode (X_("CompoundAssociation"));
- i->first->id().print (buf, sizeof (buf));
- can->add_property (X_("copy"), buf);
- i->second->id().print (buf, sizeof (buf));
- can->add_property (X_("original"), buf);
+ can->add_property (X_("copy"), i->first->id().to_s());
+ can->add_property (X_("original"), i->second->id().to_s());
ca->add_child_nocopy (*can);
}
}
node->add_property ("name", name());
node->add_property ("type", _type.to_string());
node->add_property (X_("flags"), enum_2_string (_flags));
- id().print (buf, sizeof (buf));
- node->add_property ("id", buf);
+ node->add_property ("id", id().to_s());
if (_timestamp != 0) {
snprintf (buf, sizeof (buf), "%ld", _timestamp);