Skip to content

Commit

Permalink
audio: Patched to compile with libsamplerate support.
Browse files Browse the repository at this point in the history
  • Loading branch information
icculus committed Jan 8, 2017
1 parent 19e937f commit d005dc2
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion src/audio/SDL_audio_c.h
Expand Up @@ -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);
Expand Down
5 changes: 0 additions & 5 deletions src/audio/SDL_audiocvt.c
Expand Up @@ -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)
Expand Down

0 comments on commit d005dc2

Please sign in to comment.