diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-10 18:28:55 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2014-12-10 18:28:55 -0500 |
commit | 294b99aabf3eb96323a3159b7a5e1b4bfc1ff04a (patch) | |
tree | dbb6bfba564d2979c8cebbfebe162a9659dff5aa /libs/ardour/ardour/smf_source.h | |
parent | 17707b9674958391949e59a724a264cdcc2d65ff (diff) |
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.
Diffstat (limited to 'libs/ardour/ardour/smf_source.h')
-rw-r--r-- | libs/ardour/ardour/smf_source.h | 16 |
1 files changed, 9 insertions, 7 deletions
diff --git a/libs/ardour/ardour/smf_source.h b/libs/ardour/ardour/smf_source.h index 1c1f2bbcba..56b70b15bd 100644 --- a/libs/ardour/ardour/smf_source.h +++ b/libs/ardour/ardour/smf_source.h @@ -77,8 +77,16 @@ public: void set_path (const std::string& newpath); private: - int open_for_write (); + bool _open; + Evoral::MusicalTime _last_ev_time_beats; + framepos_t _last_ev_time_frames; + /** end time (start + duration) of last call to read_unlocked */ + mutable framepos_t _smf_last_read_end; + /** time (in SMF ticks, 1 tick per _ppqn) of the last event read by read_unlocked */ + mutable framepos_t _smf_last_read_time; + int open_for_write (); + framecnt_t read_unlocked (Evoral::EventSink<framepos_t>& dst, framepos_t position, framepos_t start, @@ -89,12 +97,6 @@ public: framepos_t position, framecnt_t cnt); - Evoral::MusicalTime _last_ev_time_beats; - framepos_t _last_ev_time_frames; - /** end time (start + duration) of last call to read_unlocked */ - mutable framepos_t _smf_last_read_end; - /** time (in SMF ticks, 1 tick per _ppqn) of the last event read by read_unlocked */ - mutable framepos_t _smf_last_read_time; }; }; /* namespace ARDOUR */ |