No cached disk read (staging).

Still testing.
This commit is contained in:
nick_m 2015-02-24 00:36:12 +11:00
parent 7c9cb6615c
commit 0e8c07cbe9
2 changed files with 2 additions and 1 deletions

View File

@ -170,7 +170,6 @@ class LIBARDOUR_API AudioSource : virtual public Source,
mutable size_t _last_raw_map_length;
mutable bool _first_run;
mutable double _last_scale;
mutable boost::scoped_array<PeakData> staging;
mutable boost::scoped_array<PeakData> peak_cache;
};

View File

@ -405,6 +405,7 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, framecnt_t npeaks, framepos_t
if (_first_run || (_last_map_off != map_off) || (_last_scale != samples_per_visual_peak) || (_last_raw_map_length < raw_map_length)) {
peak_cache.reset (new PeakData[npeaks]);
boost::scoped_array<PeakData> staging;
staging.reset (new PeakData[npeaks]);
//posix_fadvise (sfd, read_map_off, map_length, POSIX_FADV_WILLNEED);
@ -471,6 +472,7 @@ AudioSource::read_peaks_with_fpp (PeakData *peaks, framecnt_t npeaks, framepos_t
if (_first_run || (_last_map_off != map_off) || (_last_scale != samples_per_visual_peak) || (_last_raw_map_length < raw_map_length)) {
peak_cache.reset (new PeakData[npeaks]);
boost::scoped_array<PeakData> staging;
staging.reset (new PeakData[chunksize]);
//posix_fadvise (sfd, read_map_off, map_length, POSIX_FADV_WILLNEED);