allow to custom select panner-type for each delivery.
[ardour.git] / libs / ardour / ardour / peak.h
index bbec40eea7e65502a36ea0a3b099fdc2e69c1e2f..ab99889dd3dd0c4cf43fc5de1ec6c88de3c64d27 100644 (file)
@@ -1,5 +1,5 @@
 /*
-    Copyright (C) 2000-2007 Paul Davis 
+    Copyright (C) 2000-2007 Paul Davis
 
     This program is free software; you can redistribute it and/or modify
     it under the terms of the GNU General Public License as published by
 #define __ardour_peak_h__
 
 #include <cmath>
-#include <ardour/types.h>
-#include <ardour/utils.h>
+#include "ardour/types.h"
+#include "ardour/utils.h"
 
 static inline float
-default_compute_peak (const ARDOUR::Sample * const buf, nframes_t nsamples, float current) 
+default_compute_peak (const ARDOUR::Sample * const buf, ARDOUR::pframes_t nsamples, float current)
 {
-       for (nframes_t i = 0; i < nsamples; ++i) {
+       for (ARDOUR::pframes_t i = 0; i < nsamples; ++i) {
                current = f_max (current, fabsf (buf[i]));
        }
        return current;
-}      
+}
 
 #endif /* __ardour_peak_h__ */