ports/audio/ir-lv2/files/patch-ir.h
Richard Gallamore 54e2a19b7f LV2 Impulse response (convolution) plugin (for reverb and cabinet simulation).
This fork adds LV2 State extenstion support for proper storing of internal
plugin data.

IR is a no-latency/low-latency, realtime, high performance signal
convolver especially for creating reverb effects. Supports impulse
responses with 1, 2 or 4 channels, in any soundfile format supported
by libsndfile.

WWW: https://github.com/Anchakor/ir.lv2

PR:		221232
Submitted by:	Yuri Victorovich (maintainer)
Reviewed by:	matthew (mentor)
Approved by:	matthew (mentor)
Differential Revision:	https://reviews.freebsd.org/D12059
2017-08-17 19:53:52 +00:00

12 lines
460 B
C

--- ir.h.orig 2013-09-10 06:27:31 UTC
+++ ir.h
@@ -35,6 +35,9 @@
#define BSIZE_SR 0x1000 /* Blocksize for SRC */
#define MAXSIZE 0x00100000 /* Max. available convolver size of zita-convolver */
+#define exp10(x) pow(10., x) // TODO not as good as exp10()?
+#define exp10f(x) powf(10., x) // TODO not as good as exp10f()?
+
#define DB_CO(g) ((g) > -90.0f ? exp10f((g) * 0.05f) : 0.0f)
#define CO_DB(g) ((g) > 0.0f ? 20.0f * log10f(g) : -90.0f)