react-native-audio-api 0.4.8-rc2 → 0.4.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (147) hide show
  1. package/android/CMakeLists.txt +2 -5
  2. package/android/build.gradle +25 -2
  3. package/android/src/main/cpp/core/AudioDecoder.cpp +10 -1
  4. package/android/src/main/cpp/core/AudioPlayer.cpp +6 -3
  5. package/android/src/main/cpp/libs/pffft.c +1906 -0
  6. package/android/src/main/cpp/libs/pffft.h +198 -0
  7. package/common/cpp/core/AnalyserNode.cpp +11 -10
  8. package/common/cpp/core/AnalyserNode.h +2 -0
  9. package/common/cpp/core/AudioBuffer.cpp +1 -1
  10. package/common/cpp/core/AudioBufferSourceNode.cpp +26 -16
  11. package/common/cpp/core/AudioBus.cpp +105 -13
  12. package/common/cpp/core/AudioBus.h +6 -4
  13. package/common/cpp/core/AudioContext.cpp +4 -3
  14. package/common/cpp/core/AudioContext.h +4 -4
  15. package/common/cpp/core/AudioDestinationNode.cpp +2 -3
  16. package/common/cpp/core/AudioNode.cpp +78 -58
  17. package/common/cpp/core/AudioNode.h +10 -1
  18. package/common/cpp/core/AudioNodeManager.cpp +13 -1
  19. package/common/cpp/core/AudioNodeManager.h +2 -0
  20. package/common/cpp/core/AudioScheduledSourceNode.cpp +5 -1
  21. package/common/cpp/core/BaseAudioContext.cpp +4 -1
  22. package/common/cpp/core/BaseAudioContext.h +4 -2
  23. package/common/cpp/core/PeriodicWave.cpp +9 -3
  24. package/common/cpp/core/StereoPannerNode.cpp +9 -12
  25. package/common/cpp/utils/FFTFrame.cpp +44 -37
  26. package/common/cpp/utils/FFTFrame.h +5 -14
  27. package/ios/core/AudioDecoder.mm +10 -1
  28. package/ios/core/AudioPlayer.m +23 -23
  29. package/ios/core/IOSAudioPlayer.mm +3 -3
  30. package/lib/module/core/AudioBufferSourceNode.js +2 -2
  31. package/lib/module/core/AudioBufferSourceNode.js.map +1 -1
  32. package/lib/module/index.js +19 -335
  33. package/lib/module/index.js.map +1 -1
  34. package/lib/module/index.web.js +18 -0
  35. package/lib/module/index.web.js.map +1 -0
  36. package/lib/module/types.js.map +1 -0
  37. package/lib/module/web-core/AnalyserNode.js +48 -0
  38. package/lib/module/web-core/AnalyserNode.js.map +1 -0
  39. package/lib/module/web-core/AudioBuffer.js +43 -0
  40. package/lib/module/web-core/AudioBuffer.js.map +1 -0
  41. package/lib/module/web-core/AudioBufferSourceNode.js +62 -0
  42. package/lib/module/web-core/AudioBufferSourceNode.js.map +1 -0
  43. package/lib/module/web-core/AudioContext.js +69 -0
  44. package/lib/module/web-core/AudioContext.js.map +1 -0
  45. package/lib/module/web-core/AudioDestinationNode.js +5 -0
  46. package/lib/module/web-core/AudioDestinationNode.js.map +1 -0
  47. package/lib/module/web-core/AudioNode.js +27 -0
  48. package/lib/module/web-core/AudioNode.js.map +1 -0
  49. package/lib/module/web-core/AudioParam.js +60 -0
  50. package/lib/module/web-core/AudioParam.js.map +1 -0
  51. package/lib/module/web-core/AudioScheduledSourceNode.js +27 -0
  52. package/lib/module/web-core/AudioScheduledSourceNode.js.map +1 -0
  53. package/lib/module/web-core/BaseAudioContext.js +2 -0
  54. package/lib/module/{core/types.js.map → web-core/BaseAudioContext.js.map} +1 -1
  55. package/lib/module/web-core/BiquadFilterNode.js +35 -0
  56. package/lib/module/web-core/BiquadFilterNode.js.map +1 -0
  57. package/lib/module/web-core/GainNode.js +11 -0
  58. package/lib/module/web-core/GainNode.js.map +1 -0
  59. package/lib/module/web-core/OscillatorNode.js +25 -0
  60. package/lib/module/web-core/OscillatorNode.js.map +1 -0
  61. package/lib/module/web-core/PeriodicWave.js +10 -0
  62. package/lib/module/web-core/PeriodicWave.js.map +1 -0
  63. package/lib/module/web-core/StereoPannerNode.js +11 -0
  64. package/lib/module/web-core/StereoPannerNode.js.map +1 -0
  65. package/lib/typescript/core/AnalyserNode.d.ts +1 -1
  66. package/lib/typescript/core/AnalyserNode.d.ts.map +1 -1
  67. package/lib/typescript/core/AudioNode.d.ts +1 -1
  68. package/lib/typescript/core/AudioNode.d.ts.map +1 -1
  69. package/lib/typescript/core/BaseAudioContext.d.ts +1 -1
  70. package/lib/typescript/core/BaseAudioContext.d.ts.map +1 -1
  71. package/lib/typescript/core/BiquadFilterNode.d.ts +1 -1
  72. package/lib/typescript/core/BiquadFilterNode.d.ts.map +1 -1
  73. package/lib/typescript/core/OscillatorNode.d.ts +1 -1
  74. package/lib/typescript/core/OscillatorNode.d.ts.map +1 -1
  75. package/lib/typescript/index.d.ts +15 -126
  76. package/lib/typescript/index.d.ts.map +1 -1
  77. package/lib/typescript/index.web.d.ts +16 -0
  78. package/lib/typescript/index.web.d.ts.map +1 -0
  79. package/lib/typescript/interfaces.d.ts +1 -1
  80. package/lib/typescript/interfaces.d.ts.map +1 -1
  81. package/lib/typescript/types.d.ts.map +1 -0
  82. package/lib/typescript/web-core/AnalyserNode.d.ts +18 -0
  83. package/lib/typescript/web-core/AnalyserNode.d.ts.map +1 -0
  84. package/lib/typescript/web-core/AudioBuffer.d.ts +13 -0
  85. package/lib/typescript/web-core/AudioBuffer.d.ts.map +1 -0
  86. package/lib/typescript/web-core/AudioBufferSourceNode.d.ts +19 -0
  87. package/lib/typescript/web-core/AudioBufferSourceNode.d.ts.map +1 -0
  88. package/lib/typescript/web-core/AudioContext.d.ts +30 -0
  89. package/lib/typescript/web-core/AudioContext.d.ts.map +1 -0
  90. package/lib/typescript/web-core/AudioDestinationNode.d.ts +4 -0
  91. package/lib/typescript/web-core/AudioDestinationNode.d.ts.map +1 -0
  92. package/lib/typescript/web-core/AudioNode.d.ts +15 -0
  93. package/lib/typescript/web-core/AudioNode.d.ts.map +1 -0
  94. package/lib/typescript/web-core/AudioParam.d.ts +17 -0
  95. package/lib/typescript/web-core/AudioParam.d.ts.map +1 -0
  96. package/lib/typescript/web-core/AudioScheduledSourceNode.d.ts +7 -0
  97. package/lib/typescript/web-core/AudioScheduledSourceNode.d.ts.map +1 -0
  98. package/lib/typescript/web-core/BaseAudioContext.d.ts +27 -0
  99. package/lib/typescript/web-core/BaseAudioContext.d.ts.map +1 -0
  100. package/lib/typescript/web-core/BiquadFilterNode.d.ts +15 -0
  101. package/lib/typescript/web-core/BiquadFilterNode.d.ts.map +1 -0
  102. package/lib/typescript/web-core/GainNode.d.ts +8 -0
  103. package/lib/typescript/web-core/GainNode.d.ts.map +1 -0
  104. package/lib/typescript/web-core/OscillatorNode.d.ts +14 -0
  105. package/lib/typescript/web-core/OscillatorNode.d.ts.map +1 -0
  106. package/lib/typescript/web-core/PeriodicWave.d.ts +6 -0
  107. package/lib/typescript/web-core/PeriodicWave.d.ts.map +1 -0
  108. package/lib/typescript/web-core/StereoPannerNode.d.ts +8 -0
  109. package/lib/typescript/web-core/StereoPannerNode.d.ts.map +1 -0
  110. package/package.json +1 -1
  111. package/src/core/AnalyserNode.ts +1 -1
  112. package/src/core/AudioBufferSourceNode.ts +2 -2
  113. package/src/core/AudioNode.ts +1 -1
  114. package/src/core/BaseAudioContext.ts +1 -1
  115. package/src/core/BiquadFilterNode.ts +1 -1
  116. package/src/core/OscillatorNode.ts +1 -1
  117. package/src/index.ts +30 -568
  118. package/src/index.web.ts +30 -0
  119. package/src/interfaces.ts +1 -1
  120. package/src/web-core/AnalyserNode.tsx +69 -0
  121. package/src/web-core/AudioBuffer.tsx +79 -0
  122. package/src/web-core/AudioBufferSourceNode.tsx +94 -0
  123. package/src/web-core/AudioContext.tsx +114 -0
  124. package/src/web-core/AudioDestinationNode.tsx +3 -0
  125. package/src/web-core/AudioNode.tsx +40 -0
  126. package/src/web-core/AudioParam.tsx +106 -0
  127. package/src/web-core/AudioScheduledSourceNode.tsx +37 -0
  128. package/src/web-core/BaseAudioContext.tsx +37 -0
  129. package/src/web-core/BiquadFilterNode.tsx +62 -0
  130. package/src/web-core/GainNode.tsx +12 -0
  131. package/src/web-core/OscillatorNode.tsx +36 -0
  132. package/src/web-core/PeriodicWave.tsx +8 -0
  133. package/src/web-core/StereoPannerNode.tsx +12 -0
  134. package/android/libs/arm64-v8a/libfftw3.a +0 -0
  135. package/android/libs/armeabi-v7a/libfftw3.a +0 -0
  136. package/android/libs/include/fftw3.h +0 -413
  137. package/android/libs/x86/libfftw3.a +0 -0
  138. package/android/libs/x86_64/libfftw3.a +0 -0
  139. package/lib/module/index.native.js +0 -21
  140. package/lib/module/index.native.js.map +0 -1
  141. package/lib/typescript/core/types.d.ts.map +0 -1
  142. package/lib/typescript/index.native.d.ts +0 -15
  143. package/lib/typescript/index.native.d.ts.map +0 -1
  144. package/src/index.native.ts +0 -27
  145. /package/lib/module/{core/types.js → types.js} +0 -0
  146. /package/lib/typescript/{core/types.d.ts → types.d.ts} +0 -0
  147. /package/src/{core/types.ts → types.ts} +0 -0
@@ -1,413 +0,0 @@
1
- /*
2
- * Copyright (c) 2003, 2007-14 Matteo Frigo
3
- * Copyright (c) 2003, 2007-14 Massachusetts Institute of Technology
4
- *
5
- * The following statement of license applies *only* to this header file,
6
- * and *not* to the other files distributed with FFTW or derived therefrom:
7
- *
8
- * Redistribution and use in source and binary forms, with or without
9
- * modification, are permitted provided that the following conditions
10
- * are met:
11
- *
12
- * 1. Redistributions of source code must retain the above copyright
13
- * notice, this list of conditions and the following disclaimer.
14
- *
15
- * 2. Redistributions in binary form must reproduce the above copyright
16
- * notice, this list of conditions and the following disclaimer in the
17
- * documentation and/or other materials provided with the distribution.
18
- *
19
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS
20
- * OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
21
- * WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
22
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY
23
- * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
24
- * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
25
- * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
26
- * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY,
27
- * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
28
- * NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
29
- * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
30
- */
31
-
32
- /***************************** NOTE TO USERS *********************************
33
- *
34
- * THIS IS A HEADER FILE, NOT A MANUAL
35
- *
36
- * If you want to know how to use FFTW, please read the manual,
37
- * online at http://www.fftw.org/doc/ and also included with FFTW.
38
- * For a quick start, see the manual's tutorial section.
39
- *
40
- * (Reading header files to learn how to use a library is a habit
41
- * stemming from code lacking a proper manual. Arguably, it's a
42
- * *bad* habit in most cases, because header files can contain
43
- * interfaces that are not part of the public, stable API.)
44
- *
45
- ****************************************************************************/
46
-
47
- #ifndef FFTW3_H
48
- #define FFTW3_H
49
-
50
- #include <stdio.h>
51
-
52
- #ifdef __cplusplus
53
- extern "C"
54
- {
55
- #endif /* __cplusplus */
56
-
57
- /* If <complex.h> is included, use the C99 complex type. Otherwise
58
- define a type bit-compatible with C99 complex */
59
- #if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I)
60
- # define FFTW_DEFINE_COMPLEX(R, C) typedef R _Complex C
61
- #else
62
- # define FFTW_DEFINE_COMPLEX(R, C) typedef R C[2]
63
- #endif
64
-
65
- #define FFTW_CONCAT(prefix, name) prefix ## name
66
- #define FFTW_MANGLE_DOUBLE(name) FFTW_CONCAT(fftw_, name)
67
- #define FFTW_MANGLE_FLOAT(name) FFTW_CONCAT(fftwf_, name)
68
- #define FFTW_MANGLE_LONG_DOUBLE(name) FFTW_CONCAT(fftwl_, name)
69
- #define FFTW_MANGLE_QUAD(name) FFTW_CONCAT(fftwq_, name)
70
-
71
- /* IMPORTANT: for Windows compilers, you should add a line
72
- #define FFTW_DLL
73
- here and in kernel/ifftw.h if you are compiling/using FFTW as a
74
- DLL, in order to do the proper importing/exporting, or
75
- alternatively compile with -DFFTW_DLL or the equivalent
76
- command-line flag. This is not necessary under MinGW/Cygwin, where
77
- libtool does the imports/exports automatically. */
78
- #if defined(FFTW_DLL) && (defined(_WIN32) || defined(__WIN32__))
79
- /* annoying Windows syntax for shared-library declarations */
80
- # if defined(COMPILING_FFTW) /* defined in api.h when compiling FFTW */
81
- # define FFTW_EXTERN extern __declspec(dllexport)
82
- # else /* user is calling FFTW; import symbol */
83
- # define FFTW_EXTERN extern __declspec(dllimport)
84
- # endif
85
- #else
86
- # define FFTW_EXTERN extern
87
- #endif
88
-
89
- enum fftw_r2r_kind_do_not_use_me {
90
- FFTW_R2HC=0, FFTW_HC2R=1, FFTW_DHT=2,
91
- FFTW_REDFT00=3, FFTW_REDFT01=4, FFTW_REDFT10=5, FFTW_REDFT11=6,
92
- FFTW_RODFT00=7, FFTW_RODFT01=8, FFTW_RODFT10=9, FFTW_RODFT11=10
93
- };
94
-
95
- struct fftw_iodim_do_not_use_me {
96
- int n; /* dimension size */
97
- int is; /* input stride */
98
- int os; /* output stride */
99
- };
100
-
101
- #include <stddef.h> /* for ptrdiff_t */
102
- struct fftw_iodim64_do_not_use_me {
103
- ptrdiff_t n; /* dimension size */
104
- ptrdiff_t is; /* input stride */
105
- ptrdiff_t os; /* output stride */
106
- };
107
-
108
- typedef void (*fftw_write_char_func_do_not_use_me)(char c, void *);
109
- typedef int (*fftw_read_char_func_do_not_use_me)(void *);
110
-
111
- /*
112
- huge second-order macro that defines prototypes for all API
113
- functions. We expand this macro for each supported precision
114
-
115
- X: name-mangling macro
116
- R: real data type
117
- C: complex data type
118
- */
119
-
120
- #define FFTW_DEFINE_API(X, R, C) \
121
- \
122
- FFTW_DEFINE_COMPLEX(R, C); \
123
- \
124
- typedef struct X(plan_s) *X(plan); \
125
- \
126
- typedef struct fftw_iodim_do_not_use_me X(iodim); \
127
- typedef struct fftw_iodim64_do_not_use_me X(iodim64); \
128
- \
129
- typedef enum fftw_r2r_kind_do_not_use_me X(r2r_kind); \
130
- \
131
- typedef fftw_write_char_func_do_not_use_me X(write_char_func); \
132
- typedef fftw_read_char_func_do_not_use_me X(read_char_func); \
133
- \
134
- FFTW_EXTERN void X(execute)(const X(plan) p); \
135
- \
136
- FFTW_EXTERN X(plan) X(plan_dft)(int rank, const int *n, \
137
- C *in, C *out, int sign, unsigned flags); \
138
- \
139
- FFTW_EXTERN X(plan) X(plan_dft_1d)(int n, C *in, C *out, int sign, \
140
- unsigned flags); \
141
- FFTW_EXTERN X(plan) X(plan_dft_2d)(int n0, int n1, \
142
- C *in, C *out, int sign, unsigned flags); \
143
- FFTW_EXTERN X(plan) X(plan_dft_3d)(int n0, int n1, int n2, \
144
- C *in, C *out, int sign, unsigned flags); \
145
- \
146
- FFTW_EXTERN X(plan) X(plan_many_dft)(int rank, const int *n, \
147
- int howmany, \
148
- C *in, const int *inembed, \
149
- int istride, int idist, \
150
- C *out, const int *onembed, \
151
- int ostride, int odist, \
152
- int sign, unsigned flags); \
153
- \
154
- FFTW_EXTERN X(plan) X(plan_guru_dft)(int rank, const X(iodim) *dims, \
155
- int howmany_rank, \
156
- const X(iodim) *howmany_dims, \
157
- C *in, C *out, \
158
- int sign, unsigned flags); \
159
- FFTW_EXTERN X(plan) X(plan_guru_split_dft)(int rank, const X(iodim) *dims, \
160
- int howmany_rank, \
161
- const X(iodim) *howmany_dims, \
162
- R *ri, R *ii, R *ro, R *io, \
163
- unsigned flags); \
164
- \
165
- FFTW_EXTERN X(plan) X(plan_guru64_dft)(int rank, \
166
- const X(iodim64) *dims, \
167
- int howmany_rank, \
168
- const X(iodim64) *howmany_dims, \
169
- C *in, C *out, \
170
- int sign, unsigned flags); \
171
- FFTW_EXTERN X(plan) X(plan_guru64_split_dft)(int rank, \
172
- const X(iodim64) *dims, \
173
- int howmany_rank, \
174
- const X(iodim64) *howmany_dims, \
175
- R *ri, R *ii, R *ro, R *io, \
176
- unsigned flags); \
177
- \
178
- FFTW_EXTERN void X(execute_dft)(const X(plan) p, C *in, C *out); \
179
- FFTW_EXTERN void X(execute_split_dft)(const X(plan) p, R *ri, R *ii, \
180
- R *ro, R *io); \
181
- \
182
- FFTW_EXTERN X(plan) X(plan_many_dft_r2c)(int rank, const int *n, \
183
- int howmany, \
184
- R *in, const int *inembed, \
185
- int istride, int idist, \
186
- C *out, const int *onembed, \
187
- int ostride, int odist, \
188
- unsigned flags); \
189
- \
190
- FFTW_EXTERN X(plan) X(plan_dft_r2c)(int rank, const int *n, \
191
- R *in, C *out, unsigned flags); \
192
- \
193
- FFTW_EXTERN X(plan) X(plan_dft_r2c_1d)(int n,R *in,C *out,unsigned flags); \
194
- FFTW_EXTERN X(plan) X(plan_dft_r2c_2d)(int n0, int n1, \
195
- R *in, C *out, unsigned flags); \
196
- FFTW_EXTERN X(plan) X(plan_dft_r2c_3d)(int n0, int n1, \
197
- int n2, \
198
- R *in, C *out, unsigned flags); \
199
- \
200
- \
201
- FFTW_EXTERN X(plan) X(plan_many_dft_c2r)(int rank, const int *n, \
202
- int howmany, \
203
- C *in, const int *inembed, \
204
- int istride, int idist, \
205
- R *out, const int *onembed, \
206
- int ostride, int odist, \
207
- unsigned flags); \
208
- \
209
- FFTW_EXTERN X(plan) X(plan_dft_c2r)(int rank, const int *n, \
210
- C *in, R *out, unsigned flags); \
211
- \
212
- FFTW_EXTERN X(plan) X(plan_dft_c2r_1d)(int n,C *in,R *out,unsigned flags); \
213
- FFTW_EXTERN X(plan) X(plan_dft_c2r_2d)(int n0, int n1, \
214
- C *in, R *out, unsigned flags); \
215
- FFTW_EXTERN X(plan) X(plan_dft_c2r_3d)(int n0, int n1, \
216
- int n2, \
217
- C *in, R *out, unsigned flags); \
218
- \
219
- FFTW_EXTERN X(plan) X(plan_guru_dft_r2c)(int rank, const X(iodim) *dims, \
220
- int howmany_rank, \
221
- const X(iodim) *howmany_dims, \
222
- R *in, C *out, \
223
- unsigned flags); \
224
- FFTW_EXTERN X(plan) X(plan_guru_dft_c2r)(int rank, const X(iodim) *dims, \
225
- int howmany_rank, \
226
- const X(iodim) *howmany_dims, \
227
- C *in, R *out, \
228
- unsigned flags); \
229
- \
230
- FFTW_EXTERN X(plan) X(plan_guru_split_dft_r2c)( \
231
- int rank, const X(iodim) *dims, \
232
- int howmany_rank, \
233
- const X(iodim) *howmany_dims, \
234
- R *in, R *ro, R *io, \
235
- unsigned flags); \
236
- FFTW_EXTERN X(plan) X(plan_guru_split_dft_c2r)( \
237
- int rank, const X(iodim) *dims, \
238
- int howmany_rank, \
239
- const X(iodim) *howmany_dims, \
240
- R *ri, R *ii, R *out, \
241
- unsigned flags); \
242
- \
243
- FFTW_EXTERN X(plan) X(plan_guru64_dft_r2c)(int rank, \
244
- const X(iodim64) *dims, \
245
- int howmany_rank, \
246
- const X(iodim64) *howmany_dims, \
247
- R *in, C *out, \
248
- unsigned flags); \
249
- FFTW_EXTERN X(plan) X(plan_guru64_dft_c2r)(int rank, \
250
- const X(iodim64) *dims, \
251
- int howmany_rank, \
252
- const X(iodim64) *howmany_dims, \
253
- C *in, R *out, \
254
- unsigned flags); \
255
- \
256
- FFTW_EXTERN X(plan) X(plan_guru64_split_dft_r2c)( \
257
- int rank, const X(iodim64) *dims, \
258
- int howmany_rank, \
259
- const X(iodim64) *howmany_dims, \
260
- R *in, R *ro, R *io, \
261
- unsigned flags); \
262
- FFTW_EXTERN X(plan) X(plan_guru64_split_dft_c2r)( \
263
- int rank, const X(iodim64) *dims, \
264
- int howmany_rank, \
265
- const X(iodim64) *howmany_dims, \
266
- R *ri, R *ii, R *out, \
267
- unsigned flags); \
268
- \
269
- FFTW_EXTERN void X(execute_dft_r2c)(const X(plan) p, R *in, C *out); \
270
- FFTW_EXTERN void X(execute_dft_c2r)(const X(plan) p, C *in, R *out); \
271
- \
272
- FFTW_EXTERN void X(execute_split_dft_r2c)(const X(plan) p, \
273
- R *in, R *ro, R *io); \
274
- FFTW_EXTERN void X(execute_split_dft_c2r)(const X(plan) p, \
275
- R *ri, R *ii, R *out); \
276
- \
277
- FFTW_EXTERN X(plan) X(plan_many_r2r)(int rank, const int *n, \
278
- int howmany, \
279
- R *in, const int *inembed, \
280
- int istride, int idist, \
281
- R *out, const int *onembed, \
282
- int ostride, int odist, \
283
- const X(r2r_kind) *kind, unsigned flags); \
284
- \
285
- FFTW_EXTERN X(plan) X(plan_r2r)(int rank, const int *n, R *in, R *out, \
286
- const X(r2r_kind) *kind, unsigned flags); \
287
- \
288
- FFTW_EXTERN X(plan) X(plan_r2r_1d)(int n, R *in, R *out, \
289
- X(r2r_kind) kind, unsigned flags); \
290
- FFTW_EXTERN X(plan) X(plan_r2r_2d)(int n0, int n1, R *in, R *out, \
291
- X(r2r_kind) kind0, X(r2r_kind) kind1, \
292
- unsigned flags); \
293
- FFTW_EXTERN X(plan) X(plan_r2r_3d)(int n0, int n1, int n2, \
294
- R *in, R *out, X(r2r_kind) kind0, \
295
- X(r2r_kind) kind1, X(r2r_kind) kind2, \
296
- unsigned flags); \
297
- \
298
- FFTW_EXTERN X(plan) X(plan_guru_r2r)(int rank, const X(iodim) *dims, \
299
- int howmany_rank, \
300
- const X(iodim) *howmany_dims, \
301
- R *in, R *out, \
302
- const X(r2r_kind) *kind, unsigned flags); \
303
- \
304
- FFTW_EXTERN X(plan) X(plan_guru64_r2r)(int rank, const X(iodim64) *dims, \
305
- int howmany_rank, \
306
- const X(iodim64) *howmany_dims, \
307
- R *in, R *out, \
308
- const X(r2r_kind) *kind, unsigned flags); \
309
- \
310
- FFTW_EXTERN void X(execute_r2r)(const X(plan) p, R *in, R *out); \
311
- \
312
- FFTW_EXTERN void X(destroy_plan)(X(plan) p); \
313
- FFTW_EXTERN void X(forget_wisdom)(void); \
314
- FFTW_EXTERN void X(cleanup)(void); \
315
- \
316
- FFTW_EXTERN void X(set_timelimit)(double t); \
317
- \
318
- FFTW_EXTERN void X(plan_with_nthreads)(int nthreads); \
319
- FFTW_EXTERN int X(init_threads)(void); \
320
- FFTW_EXTERN void X(cleanup_threads)(void); \
321
- FFTW_EXTERN void X(make_planner_thread_safe)(void); \
322
- \
323
- FFTW_EXTERN int X(export_wisdom_to_filename)(const char *filename); \
324
- FFTW_EXTERN void X(export_wisdom_to_file)(FILE *output_file); \
325
- FFTW_EXTERN char *X(export_wisdom_to_string)(void); \
326
- FFTW_EXTERN void X(export_wisdom)(X(write_char_func) write_char, \
327
- void *data); \
328
- FFTW_EXTERN int X(import_system_wisdom)(void); \
329
- FFTW_EXTERN int X(import_wisdom_from_filename)(const char *filename); \
330
- FFTW_EXTERN int X(import_wisdom_from_file)(FILE *input_file); \
331
- FFTW_EXTERN int X(import_wisdom_from_string)(const char *input_string); \
332
- FFTW_EXTERN int X(import_wisdom)(X(read_char_func) read_char, void *data); \
333
- \
334
- FFTW_EXTERN void X(fprint_plan)(const X(plan) p, FILE *output_file); \
335
- FFTW_EXTERN void X(print_plan)(const X(plan) p); \
336
- FFTW_EXTERN char *X(sprint_plan)(const X(plan) p); \
337
- \
338
- FFTW_EXTERN void *X(malloc)(size_t n); \
339
- FFTW_EXTERN R *X(alloc_real)(size_t n); \
340
- FFTW_EXTERN C *X(alloc_complex)(size_t n); \
341
- FFTW_EXTERN void X(free)(void *p); \
342
- \
343
- FFTW_EXTERN void X(flops)(const X(plan) p, \
344
- double *add, double *mul, double *fmas); \
345
- FFTW_EXTERN double X(estimate_cost)(const X(plan) p); \
346
- FFTW_EXTERN double X(cost)(const X(plan) p); \
347
- \
348
- FFTW_EXTERN int X(alignment_of)(R *p); \
349
- FFTW_EXTERN const char X(version)[]; \
350
- FFTW_EXTERN const char X(cc)[]; \
351
- FFTW_EXTERN const char X(codelet_optim)[];
352
-
353
-
354
- /* end of FFTW_DEFINE_API macro */
355
-
356
- FFTW_DEFINE_API(FFTW_MANGLE_DOUBLE, double, fftw_complex)
357
- FFTW_DEFINE_API(FFTW_MANGLE_FLOAT, float, fftwf_complex)
358
- FFTW_DEFINE_API(FFTW_MANGLE_LONG_DOUBLE, long double, fftwl_complex)
359
-
360
- /* __float128 (quad precision) is a gcc extension on i386, x86_64, and ia64
361
- for gcc >= 4.6 (compiled in FFTW with --enable-quad-precision) */
362
- #if (__GNUC__ > 4 || (__GNUC__ == 4 && __GNUC_MINOR__ >= 6)) \
363
- && !(defined(__ICC) || defined(__INTEL_COMPILER) || defined(__CUDACC__) || defined(__PGI)) \
364
- && (defined(__i386__) || defined(__x86_64__) || defined(__ia64__))
365
- # if !defined(FFTW_NO_Complex) && defined(_Complex_I) && defined(complex) && defined(I)
366
- /* note: __float128 is a typedef, which is not supported with the _Complex
367
- keyword in gcc, so instead we use this ugly __attribute__ version.
368
- However, we can't simply pass the __attribute__ version to
369
- FFTW_DEFINE_API because the __attribute__ confuses gcc in pointer
370
- types. Hence redefining FFTW_DEFINE_COMPLEX. Ugh. */
371
- # undef FFTW_DEFINE_COMPLEX
372
- # define FFTW_DEFINE_COMPLEX(R, C) typedef _Complex float __attribute__((mode(TC))) C
373
- # endif
374
- FFTW_DEFINE_API(FFTW_MANGLE_QUAD, __float128, fftwq_complex)
375
- #endif
376
-
377
- #define FFTW_FORWARD (-1)
378
- #define FFTW_BACKWARD (+1)
379
-
380
- #define FFTW_NO_TIMELIMIT (-1.0)
381
-
382
- /* documented flags */
383
- #define FFTW_MEASURE (0U)
384
- #define FFTW_DESTROY_INPUT (1U << 0)
385
- #define FFTW_UNALIGNED (1U << 1)
386
- #define FFTW_CONSERVE_MEMORY (1U << 2)
387
- #define FFTW_EXHAUSTIVE (1U << 3) /* NO_EXHAUSTIVE is default */
388
- #define FFTW_PRESERVE_INPUT (1U << 4) /* cancels FFTW_DESTROY_INPUT */
389
- #define FFTW_PATIENT (1U << 5) /* IMPATIENT is default */
390
- #define FFTW_ESTIMATE (1U << 6)
391
- #define FFTW_WISDOM_ONLY (1U << 21)
392
-
393
- /* undocumented beyond-guru flags */
394
- #define FFTW_ESTIMATE_PATIENT (1U << 7)
395
- #define FFTW_BELIEVE_PCOST (1U << 8)
396
- #define FFTW_NO_DFT_R2HC (1U << 9)
397
- #define FFTW_NO_NONTHREADED (1U << 10)
398
- #define FFTW_NO_BUFFERING (1U << 11)
399
- #define FFTW_NO_INDIRECT_OP (1U << 12)
400
- #define FFTW_ALLOW_LARGE_GENERIC (1U << 13) /* NO_LARGE_GENERIC is default */
401
- #define FFTW_NO_RANK_SPLITS (1U << 14)
402
- #define FFTW_NO_VRANK_SPLITS (1U << 15)
403
- #define FFTW_NO_VRECURSE (1U << 16)
404
- #define FFTW_NO_SIMD (1U << 17)
405
- #define FFTW_NO_SLOW (1U << 18)
406
- #define FFTW_NO_FIXED_RADIX_LARGE_N (1U << 19)
407
- #define FFTW_ALLOW_PRUNING (1U << 20)
408
-
409
- #ifdef __cplusplus
410
- } /* extern "C" */
411
- #endif /* __cplusplus */
412
-
413
- #endif /* FFTW3_H */
Binary file
Binary file
@@ -1,21 +0,0 @@
1
- "use strict";
2
-
3
- import { installModule } from "./specs/install.js";
4
- if (global.__AudioAPIInstaller == null) {
5
- installModule();
6
- }
7
- export { default as AudioBuffer } from "./core/AudioBuffer.js";
8
- export { default as AudioBufferSourceNode } from "./core/AudioBufferSourceNode.js";
9
- export { default as AudioContext } from "./core/AudioContext.js";
10
- export { default as AudioDestinationNode } from "./core/AudioDestinationNode.js";
11
- export { default as AudioNode } from "./core/AudioNode.js";
12
- export { default as AnalyserNode } from "./core/AnalyserNode.js";
13
- export { default as AudioParam } from "./core/AudioParam.js";
14
- export { default as AudioScheduledSourceNode } from "./core/AudioScheduledSourceNode.js";
15
- export { default as BaseAudioContext } from "./core/BaseAudioContext.js";
16
- export { default as BiquadFilterNode } from "./core/BiquadFilterNode.js";
17
- export { default as GainNode } from "./core/GainNode.js";
18
- export { default as OscillatorNode } from "./core/OscillatorNode.js";
19
- export { default as StereoPannerNode } from "./core/StereoPannerNode.js";
20
- export { OscillatorType, BiquadFilterType, ChannelCountMode, ChannelInterpretation, ContextState, WindowType } from "./core/types.js";
21
- //# sourceMappingURL=index.native.js.map
@@ -1 +0,0 @@
1
- {"version":3,"names":["installModule","global","__AudioAPIInstaller","default","AudioBuffer","AudioBufferSourceNode","AudioContext","AudioDestinationNode","AudioNode","AnalyserNode","AudioParam","AudioScheduledSourceNode","BaseAudioContext","BiquadFilterNode","GainNode","OscillatorNode","StereoPannerNode","OscillatorType","BiquadFilterType","ChannelCountMode","ChannelInterpretation","ContextState","WindowType"],"sourceRoot":"../../src","sources":["index.native.ts"],"mappings":";;AAAA,SAASA,aAAa,QAAQ,oBAAiB;AAE/C,IAAIC,MAAM,CAACC,mBAAmB,IAAI,IAAI,EAAE;EACtCF,aAAa,CAAC,CAAC;AACjB;AAEA,SAASG,OAAO,IAAIC,WAAW,QAAQ,uBAAoB;AAC3D,SAASD,OAAO,IAAIE,qBAAqB,QAAQ,iCAA8B;AAC/E,SAASF,OAAO,IAAIG,YAAY,QAAQ,wBAAqB;AAC7D,SAASH,OAAO,IAAII,oBAAoB,QAAQ,gCAA6B;AAC7E,SAASJ,OAAO,IAAIK,SAAS,QAAQ,qBAAkB;AACvD,SAASL,OAAO,IAAIM,YAAY,QAAQ,wBAAqB;AAC7D,SAASN,OAAO,IAAIO,UAAU,QAAQ,sBAAmB;AACzD,SAASP,OAAO,IAAIQ,wBAAwB,QAAQ,oCAAiC;AACrF,SAASR,OAAO,IAAIS,gBAAgB,QAAQ,4BAAyB;AACrE,SAAST,OAAO,IAAIU,gBAAgB,QAAQ,4BAAyB;AACrE,SAASV,OAAO,IAAIW,QAAQ,QAAQ,oBAAiB;AACrD,SAASX,OAAO,IAAIY,cAAc,QAAQ,0BAAuB;AACjE,SAASZ,OAAO,IAAIa,gBAAgB,QAAQ,4BAAyB;AACrE,SACEC,cAAc,EACdC,gBAAgB,EAChBC,gBAAgB,EAChBC,qBAAqB,EACrBC,YAAY,EACZC,UAAU,QACL,iBAAc","ignoreList":[]}
@@ -1 +0,0 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/core/types.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,gBAAgB,GAAG,KAAK,GAAG,aAAa,GAAG,UAAU,CAAC;AAElE,MAAM,MAAM,qBAAqB,GAAG,UAAU,GAAG,UAAU,CAAC;AAE5D,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,UAAU,GACV,UAAU,GACV,UAAU,GACV,WAAW,GACX,SAAS,GACT,OAAO,GACP,SAAS,CAAC;AAEd,MAAM,MAAM,YAAY,GAAG,SAAS,GAAG,QAAQ,CAAC;AAEhD,MAAM,MAAM,cAAc,GACtB,MAAM,GACN,QAAQ,GACR,UAAU,GACV,UAAU,GACV,QAAQ,CAAC;AAEb,MAAM,WAAW,uBAAuB;IACtC,oBAAoB,EAAE,OAAO,CAAC;CAC/B;AAED,MAAM,MAAM,UAAU,GAAG,UAAU,GAAG,MAAM,CAAC"}
@@ -1,15 +0,0 @@
1
- export { default as AudioBuffer } from './core/AudioBuffer';
2
- export { default as AudioBufferSourceNode } from './core/AudioBufferSourceNode';
3
- export { default as AudioContext } from './core/AudioContext';
4
- export { default as AudioDestinationNode } from './core/AudioDestinationNode';
5
- export { default as AudioNode } from './core/AudioNode';
6
- export { default as AnalyserNode } from './core/AnalyserNode';
7
- export { default as AudioParam } from './core/AudioParam';
8
- export { default as AudioScheduledSourceNode } from './core/AudioScheduledSourceNode';
9
- export { default as BaseAudioContext } from './core/BaseAudioContext';
10
- export { default as BiquadFilterNode } from './core/BiquadFilterNode';
11
- export { default as GainNode } from './core/GainNode';
12
- export { default as OscillatorNode } from './core/OscillatorNode';
13
- export { default as StereoPannerNode } from './core/StereoPannerNode';
14
- export { OscillatorType, BiquadFilterType, ChannelCountMode, ChannelInterpretation, ContextState, WindowType, } from './core/types';
15
- //# sourceMappingURL=index.native.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index.native.d.ts","sourceRoot":"","sources":["../../src/index.native.ts"],"names":[],"mappings":"AAMA,OAAO,EAAE,OAAO,IAAI,WAAW,EAAE,MAAM,oBAAoB,CAAC;AAC5D,OAAO,EAAE,OAAO,IAAI,qBAAqB,EAAE,MAAM,8BAA8B,CAAC;AAChF,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,oBAAoB,EAAE,MAAM,6BAA6B,CAAC;AAC9E,OAAO,EAAE,OAAO,IAAI,SAAS,EAAE,MAAM,kBAAkB,CAAC;AACxD,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,qBAAqB,CAAC;AAC9D,OAAO,EAAE,OAAO,IAAI,UAAU,EAAE,MAAM,mBAAmB,CAAC;AAC1D,OAAO,EAAE,OAAO,IAAI,wBAAwB,EAAE,MAAM,iCAAiC,CAAC;AACtF,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EAAE,OAAO,IAAI,QAAQ,EAAE,MAAM,iBAAiB,CAAC;AACtD,OAAO,EAAE,OAAO,IAAI,cAAc,EAAE,MAAM,uBAAuB,CAAC;AAClE,OAAO,EAAE,OAAO,IAAI,gBAAgB,EAAE,MAAM,yBAAyB,CAAC;AACtE,OAAO,EACL,cAAc,EACd,gBAAgB,EAChB,gBAAgB,EAChB,qBAAqB,EACrB,YAAY,EACZ,UAAU,GACX,MAAM,cAAc,CAAC"}
@@ -1,27 +0,0 @@
1
- import { installModule } from './specs/install';
2
-
3
- if (global.__AudioAPIInstaller == null) {
4
- installModule();
5
- }
6
-
7
- export { default as AudioBuffer } from './core/AudioBuffer';
8
- export { default as AudioBufferSourceNode } from './core/AudioBufferSourceNode';
9
- export { default as AudioContext } from './core/AudioContext';
10
- export { default as AudioDestinationNode } from './core/AudioDestinationNode';
11
- export { default as AudioNode } from './core/AudioNode';
12
- export { default as AnalyserNode } from './core/AnalyserNode';
13
- export { default as AudioParam } from './core/AudioParam';
14
- export { default as AudioScheduledSourceNode } from './core/AudioScheduledSourceNode';
15
- export { default as BaseAudioContext } from './core/BaseAudioContext';
16
- export { default as BiquadFilterNode } from './core/BiquadFilterNode';
17
- export { default as GainNode } from './core/GainNode';
18
- export { default as OscillatorNode } from './core/OscillatorNode';
19
- export { default as StereoPannerNode } from './core/StereoPannerNode';
20
- export {
21
- OscillatorType,
22
- BiquadFilterType,
23
- ChannelCountMode,
24
- ChannelInterpretation,
25
- ContextState,
26
- WindowType,
27
- } from './core/types';
File without changes
File without changes
File without changes