audiofile support + improved sample rate support + results of a -Wall -Werr
[terminatorX.git] / src / tX_global.c
index 515a4bd6fb1be96719855d77df222e95b3e7e8a8..6215ff8ddcec907efd5a7face9c95b243051bb81 100644 (file)
@@ -171,13 +171,6 @@ void load_globals_old()
        if (!globals.true_block_size) globals.true_block_size=1<globals.buff_size;
 }
 
-void load_globals() {
-       if (load_globals_xml()!=0) {
-               fprintf(stderr, "tX: Failed loading terminatorXrc - trying to load old binary rc.\n");
-               load_globals_old();
-       }
-}
-
 #define restore_int(s, i); if ((!elementFound) && (!xmlStrcmp(cur->name, (const xmlChar *) s))) { elementFound=1; if (xmlNodeListGetString(doc, cur->xmlChildrenNode, 1)) { sscanf(xmlNodeListGetString(doc, cur->xmlChildrenNode, 1), "%i", &i); }}
 #define restore_float(s, i); if ((!elementFound) && (!xmlStrcmp(cur->name, (const xmlChar *) s))) { elementFound=1; if  (xmlNodeListGetString(doc, cur->xmlChildrenNode, 1)) {sscanf(xmlNodeListGetString(doc, cur->xmlChildrenNode, 1), "%lf", &dvalue); i=dvalue;}}
 #define restore_string(s, i); if ((!elementFound) && (!xmlStrcmp(cur->name, (const xmlChar *) s))) { elementFound=1; if (xmlNodeListGetString(doc, cur->xmlChildrenNode, 1)) {strcpy(i, xmlNodeListGetString(doc, cur->xmlChildrenNode, 1)); }}
@@ -299,3 +292,10 @@ void store_globals() {
                fprintf(rc,"</terminatorXrc>\n");
        }
 }
+
+void load_globals() {
+       if (load_globals_xml()!=0) {
+               fprintf(stderr, "tX: Failed loading terminatorXrc - trying to load old binary rc.\n");
+               load_globals_old();
+       }
+}