projects
/
ardour.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
add wrapper for ChanMapping::get()
[ardour.git]
/
libs
/
ardour
/
ardour
/
peak.h
diff --git
a/libs/ardour/ardour/peak.h
b/libs/ardour/ardour/peak.h
index eaeafe0f5d43b44d1e82adde7cba83224ed77d6d..9c871a9e35f417bd573bd77a9d6191299e31d4a8 100644
(file)
--- a/
libs/ardour/ardour/peak.h
+++ b/
libs/ardour/ardour/peak.h
@@
-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
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
@@
-21,16
+21,17
@@
#define __ardour_peak_h__
#include <cmath>
#define __ardour_peak_h__
#include <cmath>
-#include <ardour/types.h>
-#include <ardour/utils.h>
+#include "ardour/libardour_visibility.h"
+#include "ardour/types.h"
+#include "ardour/utils.h"
static inline float
static inline float
-compute_peak (ARDOUR::Sample *buf, nframes_t nsamples, float current)
+default_compute_peak (const ARDOUR::Sample * const buf, ARDOUR::pframes_t nsamples, float current)
{
{
- for (
n
frames_t i = 0; i < nsamples; ++i) {
+ for (
ARDOUR::p
frames_t i = 0; i < nsamples; ++i) {
current = f_max (current, fabsf (buf[i]));
}
return current;
current = f_max (current, fabsf (buf[i]));
}
return current;
-}
+}
#endif /* __ardour_peak_h__ */
#endif /* __ardour_peak_h__ */