#else
, basic_packer (9, 2)
#endif
- , _used (false)
{
using namespace Notebook_Helpers;
Label* label;
XMLNode* root = new XMLNode ("AudioMIDISetup");
std::string path;
- if (_used) {
-
- if (!states.empty()) {
- XMLNode* state_nodes = new XMLNode ("EngineStates");
+ if (!states.empty()) {
+ XMLNode* state_nodes = new XMLNode ("EngineStates");
+
+ for (StateList::const_iterator i = states.begin(); i != states.end(); ++i) {
- for (StateList::const_iterator i = states.begin(); i != states.end(); ++i) {
-
- XMLNode* node = new XMLNode ("State");
-
- node->add_property ("backend", (*i).backend);
- node->add_property ("driver", (*i).driver);
- node->add_property ("device", (*i).device);
- node->add_property ("sample-rate", (*i).sample_rate);
- node->add_property ("buffer-size", (*i).buffer_size);
- node->add_property ("input-latency", (*i).input_latency);
- node->add_property ("output-latency", (*i).output_latency);
- node->add_property ("input-channels", (*i).input_channels);
- node->add_property ("output-channels", (*i).output_channels);
- node->add_property ("active", (*i).active ? "yes" : "no");
-
- state_nodes->add_child_nocopy (*node);
- }
-
- root->add_child_nocopy (*state_nodes);
+ XMLNode* node = new XMLNode ("State");
+
+ node->add_property ("backend", (*i).backend);
+ node->add_property ("driver", (*i).driver);
+ node->add_property ("device", (*i).device);
+ node->add_property ("sample-rate", (*i).sample_rate);
+ node->add_property ("buffer-size", (*i).buffer_size);
+ node->add_property ("input-latency", (*i).input_latency);
+ node->add_property ("output-latency", (*i).output_latency);
+ node->add_property ("input-channels", (*i).input_channels);
+ node->add_property ("output-channels", (*i).output_channels);
+ node->add_property ("active", (*i).active ? "yes" : "no");
+
+ state_nodes->add_child_nocopy (*node);
}
+
+ root->add_child_nocopy (*state_nodes);
}
return *root;
states.clear ();
+
for (citer = clist.begin(); citer != clist.end(); ++citer) {
child = *citer;
return -1;
}
- /* we've used this dialog to configure the engine, which means
- * that our state becomes relevant for saving (and thus
- * implicitly, restoring.
- */
-
- _used = true;
-
/* get a pointer to the current state object, creating one if
* necessary
*/