diff options
Diffstat (limited to 'audio/sdl_mixer')
-rw-r--r-- | audio/sdl_mixer/Makefile | 1 | ||||
-rw-r--r-- | audio/sdl_mixer/files/patch-SDL_mixer.h | 14 | ||||
-rw-r--r-- | audio/sdl_mixer/files/patch-mixer.c | 24 |
3 files changed, 39 insertions, 0 deletions
diff --git a/audio/sdl_mixer/Makefile b/audio/sdl_mixer/Makefile index 854c9384bf17..e9f0025815f6 100644 --- a/audio/sdl_mixer/Makefile +++ b/audio/sdl_mixer/Makefile @@ -7,6 +7,7 @@ PORTNAME= sdl_mixer PORTVERSION= 1.2.0 +PORTREVISION= 1 CATEGORIES= audio MASTER_SITES= http://www.libsdl.org/projects/SDL_mixer/release/ DISTNAME= SDL_mixer-${PORTVERSION} diff --git a/audio/sdl_mixer/files/patch-SDL_mixer.h b/audio/sdl_mixer/files/patch-SDL_mixer.h new file mode 100644 index 000000000000..67d21b9f24d7 --- /dev/null +++ b/audio/sdl_mixer/files/patch-SDL_mixer.h @@ -0,0 +1,14 @@ + +$FreeBSD$ + +--- SDL_mixer.h 2001/05/08 07:44:56 1.1 ++++ SDL_mixer.h 2001/05/08 07:48:13 +@@ -222,6 +222,8 @@ + /* Close the mixer, halting all playing audio */ + extern DECLSPEC void Mix_CloseAudio(void); + ++extern DECLSPEC int Mix_GetMixerInfo(SDL_AudioSpec *, char *, int); ++ + /* We'll use SDL for reporting errors */ + #define Mix_SetError SDL_SetError + #define Mix_GetError SDL_GetError diff --git a/audio/sdl_mixer/files/patch-mixer.c b/audio/sdl_mixer/files/patch-mixer.c new file mode 100644 index 000000000000..819646081cdd --- /dev/null +++ b/audio/sdl_mixer/files/patch-mixer.c @@ -0,0 +1,24 @@ + +$FreeBSD$ + +--- mixer.c 2001/05/08 07:44:26 1.1 ++++ mixer.c 2001/05/08 07:47:09 +@@ -865,3 +865,18 @@ + } + return(chan); + } ++ ++int Mix_GetMixerInfo(SDL_AudioSpec *m, char *namebuf, int maxlen) ++{ ++ if (!audio_opened) ++ return -1; ++ if (m) ++ *m = mixer; /* struct copy */ ++ if (namebuf && maxlen > 0) ++ { ++ namebuf[0] = 0; ++ if (SDL_AudioDriverName(namebuf, maxlen) == NULL) ++ namebuf[0] = 0; ++ } ++ return 0; ++} |