mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-09 06:51:44 +00:00
446c90c275
PR: 58768 Submitted by: Ports Fury
20 lines
505 B
C++
20 lines
505 B
C++
--- common/plugins/effects/custom/chorus_effect.cpp.orig Sun Oct 26 05:07:38 2003
|
|
+++ common/plugins/effects/custom/chorus_effect.cpp Thu Oct 30 12:00:04 2003
|
|
@@ -10,10 +10,16 @@
|
|
//
|
|
//
|
|
#include "chorus_effect.h"
|
|
+#include <math.h>
|
|
|
|
|
|
#define FRACTIONAL_BITS 13
|
|
#define MIX_CALCULATE_INCREMENT_INTERVAL 8
|
|
+
|
|
+#if defined(__FreeBSD__)
|
|
+ #define lrint(flt) ((int) (flt))
|
|
+ #define lrintf(flt) ((int) (flt))
|
|
+#endif
|
|
|
|
|
|
inline static double get_msecs_from_samples(double p_samples,double p_mixfreq) {
|