mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-13 01:56:34 +01:00
open external [read-only] midi-files on construction
This commit is contained in:
parent
eb853b79c4
commit
9e799c6146
1 changed files with 9 additions and 0 deletions
|
|
@ -66,6 +66,15 @@ SMFSource::SMFSource (Session& s, const string& path, Source::Flag flags)
|
|||
}
|
||||
|
||||
/* file is not opened until write */
|
||||
|
||||
if (flags & Writable) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (open(_path)) {
|
||||
throw failed_constructor ();
|
||||
}
|
||||
_open = true;
|
||||
}
|
||||
|
||||
/** Constructor used for existing internal-to-session files. */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue