AUDIO: MT32: Fix Internal Sample Rate Converter Code

This was previously disabled implicitly by the missing define
symbols in the SampleRateConvertor module. This has now been enabled
to use the internal rate convertor code.

This was generating undefined macro warnings from GCC when -Wundef
was passed.
This commit is contained in:
D G Turner 2022-03-20 22:54:04 +00:00
parent 9afafb700c
commit a1de9a95c6
2 changed files with 9 additions and 1 deletions

View File

@ -14,7 +14,9 @@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
#include <cstddef>
#define MT32EMU_WITH_LIBSOXR_RESAMPLER 0
#define MT32EMU_WITH_LIBSAMPLERATE_RESAMPLER 0
#define MT32EMU_WITH_INTERNAL_RESAMPLER 1
#include "SampleRateConverter.h"

View File

@ -21,6 +21,12 @@ MODULE_OBJS := \
TVP.o \
sha1/sha1.o \
c_interface/c_interface.o \
srchelper/InternalResampler.o \
srchelper/srctools/src/FIRResampler.o \
srchelper/srctools/src/IIR2xResampler.o \
srchelper/srctools/src/LinearResampler.o \
srchelper/srctools/src/ResamplerModel.o \
srchelper/srctools/src/SincResampler.o \
SampleRateConverter.o
# Include common rules