and now with "d"
[ardour.git] / libs / ardour / smf_source.cc
index cbb8c5db1e4e524c97e25663a3544bf420bd6a94..2aae26d847156c4c9f3bc8cb5e5864757ca3788f 100644 (file)
@@ -30,7 +30,7 @@
 #include "pbd/stl_delete.h"
 #include "pbd/strsplit.h"
 
-#include <pbd/gstdio_compat.h>
+#include "pbd/gstdio_compat.h"
 #include <glibmm/miscutils.h>
 #include <glibmm/fileutils.h>
 
@@ -46,7 +46,7 @@
 #include "ardour/session.h"
 #include "ardour/smf_source.h"
 
-#include "i18n.h"
+#include "pbd/i18n.h"
 
 using namespace ARDOUR;
 using namespace Glib;
@@ -71,7 +71,7 @@ SMFSource::SMFSource (Session& s, const string& path, Source::Flag flags)
        if (init (_path, false)) {
                throw failed_constructor ();
        }
+
         assert (!Glib::file_test (_path, Glib::FILE_TEST_EXISTS));
        existence_check ();
 
@@ -107,7 +107,7 @@ SMFSource::SMFSource (Session& s, const string& path)
        if (init (_path, true)) {
                throw failed_constructor ();
        }
+
         assert (Glib::file_test (_path, Glib::FILE_TEST_EXISTS));
        existence_check ();
 
@@ -370,7 +370,7 @@ SMFSource::write_unlocked (const Lock&                 lock,
                        break;
                }
                time -= position;
-                       
+
                ev.set(buf, size, time);
                ev.set_event_type(midi_parameter_type(ev.buffer()[0]));
                ev.set_id(Evoral::next_event_id());
@@ -577,7 +577,7 @@ SMFSource::safe_midi_file_extension (const string& file)
        static bool compile = true;
        const int nmatches = 2;
        regmatch_t matches[nmatches];
-       
+
        if (Glib::file_test (file, Glib::FILE_TEST_EXISTS)) {
                if (!Glib::file_test (file, Glib::FILE_TEST_IS_REGULAR)) {
                        /* exists but is not a regular file */
@@ -590,7 +590,7 @@ SMFSource::safe_midi_file_extension (const string& file)
        } else {
                compile = false;
        }
-       
+
        if (regexec (&compiled_pattern, file.c_str(), nmatches, matches, 0)) {
                return false;
        }
@@ -784,8 +784,8 @@ SMFSource::prevent_deletion ()
        /* Unlike the audio case, the MIDI file remains mutable (because we can
           edit MIDI data)
        */
-  
+
        _flags = Flag (_flags & ~(Removable|RemovableIfEmpty|RemoveAtDestroy));
 }
-               
-       
+
+