mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-19 05:06:31 +01:00
remove file manager LRU cache from code.
This was a very clever attempt to fix a non-problem. If the platform doesn't have enough file descriptors available then the platform is broken and we're not going to hack around trying to fix it.
This commit is contained in:
parent
17707b9674
commit
294b99aabf
15 changed files with 96 additions and 793 deletions
|
|
@ -59,6 +59,7 @@ SMFSource::SMFSource (Session& s, const string& path, Source::Flag flags)
|
|||
, MidiSource(s, path, flags)
|
||||
, FileSource(s, DataType::MIDI, path, string(), flags)
|
||||
, Evoral::SMF()
|
||||
, _open (false)
|
||||
, _last_ev_time_beats(0.0)
|
||||
, _last_ev_time_frames(0)
|
||||
, _smf_last_read_end (0)
|
||||
|
|
@ -94,6 +95,7 @@ SMFSource::SMFSource (Session& s, const string& path)
|
|||
, MidiSource(s, path, Source::Flag (0))
|
||||
, FileSource(s, DataType::MIDI, path, string(), Source::Flag (0))
|
||||
, Evoral::SMF()
|
||||
, _open (false)
|
||||
, _last_ev_time_beats(0.0)
|
||||
, _last_ev_time_frames(0)
|
||||
, _smf_last_read_end (0)
|
||||
|
|
@ -125,6 +127,7 @@ SMFSource::SMFSource (Session& s, const XMLNode& node, bool must_exist)
|
|||
: Source(s, node)
|
||||
, MidiSource(s, node)
|
||||
, FileSource(s, node, must_exist)
|
||||
, _open (false)
|
||||
, _last_ev_time_beats(0.0)
|
||||
, _last_ev_time_frames(0)
|
||||
, _smf_last_read_end (0)
|
||||
|
|
@ -174,7 +177,7 @@ SMFSource::SMFSource (Session& s, const XMLNode& node, bool must_exist)
|
|||
return;
|
||||
}
|
||||
|
||||
if (open(_path)) {
|
||||
if (open (_path)) {
|
||||
throw failed_constructor ();
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue