new files from sakari, missed last time
[ardour.git] / libs / ardour / ardour / silentfilesource.h
index 92ef076a9ba62d6005bb710de53b82b7f67000eb..cbb123139a78b3c6b0b71f072f1289c0fd35b57d 100644 (file)
@@ -20,6 +20,7 @@
 #ifndef __ardour_silentfilesource_h__ 
 #define __ardour_silentfilesource_h__
 
+#include <cstring>
 #include <ardour/audiofilesource.h>
 
 namespace ARDOUR {
@@ -34,12 +35,8 @@ class SilentFileSource : public AudioFileSource {
 
        void set_length (nframes_t len);
        
-       int read_peaks (PeakData *peaks, nframes_t npeaks, nframes_t start, nframes_t cnt, double samples_per_unit) const {
-               memset (peaks, 0, sizeof (PeakData) * npeaks);
-               return 0;
-       }
-
        bool destructive() const { return false; }
+       bool can_be_analysed() const { return false; } 
 
   protected:
 
@@ -58,6 +55,11 @@ class SilentFileSource : public AudioFileSource {
 
        void set_header_timeline_position () {}
 
+       int read_peaks_with_fpp (PeakData *peaks, nframes_t npeaks, nframes_t start, nframes_t cnt, double samples_per_unit, nframes_t fpp) const {
+               memset (peaks, 0, sizeof (PeakData) * npeaks);
+               return 0;
+       }
+
 };
 
 } // namespace ARDOUR