diff data/fft/FFTCache.h @ 335:02d2ad95ea52 spectrogram-cache-rejig

* Get storage advice for each cache in an FFT data server. Allows us to be more confident about the actual memory situation and cut over from memory to disc part way through an FFT calculation if necessary. StorageAdviser is now a bit too optimistic though (it's too keen to allocate large numbers of small blocks in memory).
author Chris Cannam
date Tue, 13 Nov 2007 13:54:10 +0000
parents e5879045d22b
children 115f60df1e4d
line wrap: on
line diff
--- a/data/fft/FFTCache.h	Sun Nov 11 20:31:12 2007 +0000
+++ b/data/fft/FFTCache.h	Tue Nov 13 13:54:10 2007 +0000
@@ -49,6 +49,9 @@
 
     virtual void suspend() { }
 
+    enum Type { MemoryCache, FileCache };
+    virtual Type getType() = 0;
+
 protected:
     FFTCache() { }
 };