mirror of
https://git.freebsd.org/ports.git
synced 2025-06-06 13:20:32 -04:00
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
12 lines
460 B
C
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)
|
|
|