fork/rust-sdks

git clone https://git.julia.blue/fork/rust-sdks

Théo Monnomsoxr-sys (#438)2e4d385

livekit/livekit-ffi@0.13.0
961 B35 linesraw
1/* SoX Resampler Library      Copyright (c) 2007-13 robs@users.sourceforge.net
2 * Licence for this file: LGPL v2.1                  See LICENCE for details. */
3
4#include <stdlib.h>
5#include "filter.h"
6#include "fft4g.c"
7#include "soxr-config.h"
8
9#if WITH_CR64
10static void * null(void) {return 0;}
11static void nothing(void) {}
12static void forward (int length, void * setup, double * H) {lsx_safe_rdft(length,  1, H); (void)setup;}
13static void backward(int length, void * setup, double * H) {lsx_safe_rdft(length, -1, H); (void)setup;}
14static int multiplier(void) {return 2;}
15static int flags(void) {return 0;}
16
17typedef void (* fn_t)(void);
18fn_t _soxr_rdft64_cb[] = {
19  (fn_t)null,
20  (fn_t)null,
21  (fn_t)nothing,
22  (fn_t)forward,
23  (fn_t)forward,
24  (fn_t)backward,
25  (fn_t)backward,
26  (fn_t)_soxr_ordered_convolve,
27  (fn_t)_soxr_ordered_partial_convolve,
28  (fn_t)multiplier,
29  (fn_t)nothing,
30  (fn_t)malloc,
31  (fn_t)calloc,
32  (fn_t)free,
33  (fn_t)flags,
34};
35#endif