~arsen/alsa_rnnoise

82272e88e02543a6997cc56931f32797f0f23566 — Arsen Arsenović 3 years ago 4ca7d05
fix build system detecting rnnoise_get_frame_size
2 files changed, 2 insertions(+), 2 deletions(-)

M meson.build
M src/main.c
M meson.build => meson.build +1 -1
@@ 25,7 25,7 @@ endif

has_frame_func = cc.has_function('rnnoise_get_frame_size',
				prefix: '#include <rnnoise.h>',
				dependencies: rnnoise)
				dependencies: [rnnoise, libm])

if not has_frame_func
	add_project_arguments('-DNO_RNNOISE_GET_FRAME_SIZE', language: 'c')

M src/main.c => src/main.c +1 -1
@@ 17,7 17,7 @@
#include <alsa/pcm_external.h>
#include <rnnoise.h>

#ifdef DNO_RNNOISE_GET_FRAME_SIZE
#ifdef NO_RNNOISE_GET_FRAME_SIZE
/* backwards compat with older rnnoise revisions */
static inline int rnnoise_get_frame_size() {
	return 480;