Skip to content

Commit

Permalink
Fix a compilation error and tidy up some messages.
Browse files Browse the repository at this point in the history
  • Loading branch information
mikebrady committed Oct 28, 2019
1 parent 8a814dc commit 54d1323
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1,198 deletions.
7 changes: 5 additions & 2 deletions FFTConvolver/convolver.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,11 @@
#include "FFTConvolver.h"
#include "Utilities.h"

extern "C" void die(const char *format, ...);
extern "C" void debug(int level, const char *format, ...);
extern "C" void _die(const char *filename, const int linenumber, const char *format, ...);
extern "C" void _debug(const char *filename, const int linenumber, int level, const char *format, ...);

#define die(...) _die(__FILE__, __LINE__, __VA_ARGS__)
#define debug(...) _debug(__FILE__, __LINE__, __VA_ARGS__)

static fftconvolver::FFTConvolver convolver_l;
static fftconvolver::FFTConvolver convolver_r;
Expand Down
2 changes: 1 addition & 1 deletion configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -298,7 +298,7 @@ AC_ARG_WITH(convolution, [ --with-convolution = choose audio DSP convolution su
REQUESTED_CONVOLUTION=1
AM_INIT_AUTOMAKE([subdir-objects])
AC_DEFINE([CONFIG_CONVOLUTION], 1, [Needed by the compiler.])
AC_CHECK_LIB([sndfile], [sf_open], , AC_MSG_ERROR(Convolution support requires the sndfile library!))], )
AC_CHECK_LIB([sndfile], [sf_open], , AC_MSG_ERROR(Convolution support requires the sndfile library -- libsndfile1-dev suggested!))], )
AM_CONDITIONAL([USE_CONVOLUTION], [test "x$REQUESTED_CONVOLUTION" = "x1"])

# Look for dns_sd flag
Expand Down
Loading

0 comments on commit 54d1323

Please sign in to comment.