Mercurial > hg > vamp-plugin-sdk
comparison vamp-sdk/hostext/PluginInputDomainAdapter.cpp @ 103:2cb46126ef59
* Attempt to clarify licensing implications of HAVE_FFTW3
| author | cannam |
|---|---|
| date | Tue, 29 Jan 2008 16:13:22 +0000 |
| parents | 5c9f267c48c0 |
| children | 1982246a3902 |
comparison
equal
deleted
inserted
replaced
| 102:ca40f3bc99f0 | 103:2cb46126ef59 |
|---|---|
| 6 An API for audio analysis and feature extraction plugins. | 6 An API for audio analysis and feature extraction plugins. |
| 7 | 7 |
| 8 Centre for Digital Music, Queen Mary, University of London. | 8 Centre for Digital Music, Queen Mary, University of London. |
| 9 Copyright 2006-2007 Chris Cannam and QMUL. | 9 Copyright 2006-2007 Chris Cannam and QMUL. |
| 10 | 10 |
| 11 This file is based in part on Don Cross's public domain FFT | |
| 12 implementation. | |
| 13 | |
| 11 Permission is hereby granted, free of charge, to any person | 14 Permission is hereby granted, free of charge, to any person |
| 12 obtaining a copy of this software and associated documentation | 15 obtaining a copy of this software and associated documentation |
| 13 files (the "Software"), to deal in the Software without | 16 files (the "Software"), to deal in the Software without |
| 14 restriction, including without limitation the rights to use, copy, | 17 restriction, including without limitation the rights to use, copy, |
| 15 modify, merge, publish, distribute, sublicense, and/or sell copies | 18 modify, merge, publish, distribute, sublicense, and/or sell copies |
| 42 /** | 45 /** |
| 43 * If you want to compile using FFTW instead of the built-in FFT | 46 * If you want to compile using FFTW instead of the built-in FFT |
| 44 * implementation for the PluginInputDomainAdapter, define HAVE_FFTW3 | 47 * implementation for the PluginInputDomainAdapter, define HAVE_FFTW3 |
| 45 * in the Makefile. | 48 * in the Makefile. |
| 46 * | 49 * |
| 47 * Remember that FFTW is licensed under the GPL (unlike this SDK, which | 50 * Be aware that FFTW is licensed under the GPL -- unlike this SDK, |
| 48 * is licensed liberally in order to permit closed-source usage), so | 51 * which is provided under a more liberal BSD license in order to |
| 49 * you should not define this symbol unless your code is also under the | 52 * permit use in closed source applications. The use of FFTW would |
| 50 * GPL. Also, parties redistributing this SDK for use in other | 53 * mean that your code would need to be licensed under the GPL as |
| 51 * programs should be careful _not_ to define this symbol in order not | 54 * well. Do not define this symbol unless you understand and accept |
| 52 * to affect the stated license of this SDK. | 55 * the implications of this. |
| 56 * | |
| 57 * Parties such as Linux distribution packagers who redistribute this | |
| 58 * SDK for use in other programs should _not_ define this symbol, as | |
| 59 * it would change the effective licensing terms under which the SDK | |
| 60 * was available to third party developers. | |
| 61 * | |
| 62 * The default is not to use FFTW, and to use the built-in FFT instead. | |
| 53 * | 63 * |
| 54 * Note: This code uses FFTW_MEASURE, and will perform badly on its | 64 * Note: The FFTW code uses FFTW_MEASURE, and so will perform badly on |
| 55 * first invocation unless the host has saved and restored FFTW wisdom | 65 * its first invocation unless the host has saved and restored FFTW |
| 56 * (see the FFTW documentation). | 66 * wisdom (see the FFTW documentation). |
| 57 */ | 67 */ |
| 58 #ifdef HAVE_FFTW3 | 68 #ifdef HAVE_FFTW3 |
| 59 #include <fftw3.h> | 69 #include <fftw3.h> |
| 60 #endif | 70 #endif |
| 61 | 71 |
