XMLNode&
EngineControl::get_state ()
{
- LocaleGuard lg (X_("C"));
+ LocaleGuard lg ();
XMLNode* root = new XMLNode ("AudioMIDISetup");
std::string path;
{
XMLNodeList clist, cclist;
XMLNodeConstIterator citer, cciter;
- XMLNode* child;
- XMLNode* grandchild;
- XMLProperty* prop = NULL;
+ XMLNode const * child;
+ XMLNode const * grandchild;
+ XMLProperty const * prop = NULL;
fprintf (stderr, "EngineControl::set_state\n");
EngineControl::set_desired_sample_rate (uint32_t sr)
{
_desired_sample_rate = sr;
+ if (ARDOUR::AudioEngine::instance ()->running ()
+ && ARDOUR::AudioEngine::instance ()->sample_rate () != sr) {
+ stop_engine ();
+ }
device_changed ();
}