From d005dc21d328b30d4be188d4152e0c870dd0bb69 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Sun, 8 Jan 2017 14:23:15 -0500 Subject: [PATCH] audio: Patched to compile with libsamplerate support. --- src/audio/SDL_audio_c.h | 2 +- src/audio/SDL_audiocvt.c | 5 ----- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/src/audio/SDL_audio_c.h b/src/audio/SDL_audio_c.h index 2736fe4fa..2b94d723c 100644 --- a/src/audio/SDL_audio_c.h +++ b/src/audio/SDL_audio_c.h @@ -37,8 +37,8 @@ /* Functions and variables exported from SDL_audio.c for SDL_sysaudio.c */ #ifdef HAVE_LIBSAMPLERATE_H +#include "samplerate.h" extern SDL_bool SRC_available; -typedef struct SRC_STATE SRC_STATE; extern SRC_STATE* (*SRC_src_new)(int converter_type, int channels, int *error); extern int (*SRC_src_process)(SRC_STATE *state, SRC_DATA *data); extern int (*SRC_src_reset)(SRC_STATE *state); diff --git a/src/audio/SDL_audiocvt.c b/src/audio/SDL_audiocvt.c index 1d9f02708..561c2ca08 100644 --- a/src/audio/SDL_audiocvt.c +++ b/src/audio/SDL_audiocvt.c @@ -29,11 +29,6 @@ #include "SDL_assert.h" #include "../SDL_dataqueue.h" -#if HAVE_LIBSAMPLERATE_H -#include "samplerate.h" -#endif - - /* Effectively mix right and left channels into a single channel */ static void SDLCALL SDL_ConvertMono(SDL_AudioCVT * cvt, SDL_AudioFormat format)