audio: Patched to compile with libsamplerate support (again).
authorRyan C. Gordon <icculus@icculus.org>
Sun, 08 Jan 2017 14:28:44 -0500
changeset 1079298447b8fda53
parent 10791 64c46e09df9d
child 10793 7e657de3758d
audio: Patched to compile with libsamplerate support (again).
src/audio/SDL_audio.c
     1.1 --- a/src/audio/SDL_audio.c	Sun Jan 08 14:23:15 2017 -0500
     1.2 +++ b/src/audio/SDL_audio.c	Sun Jan 08 14:28:44 2017 -0500
     1.3 @@ -136,11 +136,11 @@
     1.4      }
     1.5  #endif
     1.6  
     1.7 -    SRC_src_new = (SRC_STATE* (*)(int converter_type, int channels, int *error))SDL_LoadFunction(state->SRC_lib, "src_new");
     1.8 -    SRC_src_process = (int (*)(SRC_STATE *state, SRC_DATA *data))SDL_LoadFunction(state->SRC_lib, "src_process");
     1.9 -    SRC_src_reset = (int(*)(SRC_STATE *state))SDL_LoadFunction(state->SRC_lib, "src_reset");
    1.10 -    SRC_src_delete = (SRC_STATE* (*)(SRC_STATE *state))SDL_LoadFunction(state->SRC_lib, "src_delete");
    1.11 -    SRC_src_strerror = (const char* (*)(int error))SDL_LoadFunction(state->SRC_lib, "src_strerror");
    1.12 +    SRC_src_new = (SRC_STATE* (*)(int converter_type, int channels, int *error))SDL_LoadFunction(SRC_lib, "src_new");
    1.13 +    SRC_src_process = (int (*)(SRC_STATE *state, SRC_DATA *data))SDL_LoadFunction(SRC_lib, "src_process");
    1.14 +    SRC_src_reset = (int(*)(SRC_STATE *state))SDL_LoadFunction(SRC_lib, "src_reset");
    1.15 +    SRC_src_delete = (SRC_STATE* (*)(SRC_STATE *state))SDL_LoadFunction(SRC_lib, "src_delete");
    1.16 +    SRC_src_strerror = (const char* (*)(int error))SDL_LoadFunction(SRC_lib, "src_strerror");
    1.17  
    1.18      if (!SRC_src_new || !SRC_src_process || !SRC_src_reset || !SRC_src_delete || !SRC_src_strerror) {
    1.19          #ifdef SDL_LIBSAMPLERATE_DYNAMIC