audio: Patched to compile with libsamplerate support.
authorRyan C. Gordon <icculus@icculus.org>
Sun, 08 Jan 2017 14:23:15 -0500
changeset 1079164c46e09df9d
parent 10790 92726dd20acd
child 10792 98447b8fda53
audio: Patched to compile with libsamplerate support.
src/audio/SDL_audio_c.h
src/audio/SDL_audiocvt.c
     1.1 --- a/src/audio/SDL_audio_c.h	Sun Jan 08 14:18:03 2017 -0500
     1.2 +++ b/src/audio/SDL_audio_c.h	Sun Jan 08 14:23:15 2017 -0500
     1.3 @@ -37,8 +37,8 @@
     1.4  /* Functions and variables exported from SDL_audio.c for SDL_sysaudio.c */
     1.5  
     1.6  #ifdef HAVE_LIBSAMPLERATE_H
     1.7 +#include "samplerate.h"
     1.8  extern SDL_bool SRC_available;
     1.9 -typedef struct SRC_STATE SRC_STATE;
    1.10  extern SRC_STATE* (*SRC_src_new)(int converter_type, int channels, int *error);
    1.11  extern int (*SRC_src_process)(SRC_STATE *state, SRC_DATA *data);
    1.12  extern int (*SRC_src_reset)(SRC_STATE *state);
     2.1 --- a/src/audio/SDL_audiocvt.c	Sun Jan 08 14:18:03 2017 -0500
     2.2 +++ b/src/audio/SDL_audiocvt.c	Sun Jan 08 14:23:15 2017 -0500
     2.3 @@ -29,11 +29,6 @@
     2.4  #include "SDL_assert.h"
     2.5  #include "../SDL_dataqueue.h"
     2.6  
     2.7 -#if HAVE_LIBSAMPLERATE_H
     2.8 -#include "samplerate.h"
     2.9 -#endif
    2.10 -
    2.11 -
    2.12  /* Effectively mix right and left channels into a single channel */
    2.13  static void SDLCALL
    2.14  SDL_ConvertMono(SDL_AudioCVT * cvt, SDL_AudioFormat format)