mirror of
https://git.FreeBSD.org/ports.git
synced 2024-11-27 00:57:50 +00:00
Add back function that was removed in this release but still used by some
packages (pysol-audio-server).
This commit is contained in:
parent
3d31c33e2e
commit
a0108e0352
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=42391
@ -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}
|
||||
|
14
audio/sdl_mixer/files/patch-SDL_mixer.h
Normal file
14
audio/sdl_mixer/files/patch-SDL_mixer.h
Normal file
@ -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
|
24
audio/sdl_mixer/files/patch-mixer.c
Normal file
24
audio/sdl_mixer/files/patch-mixer.c
Normal file
@ -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;
|
||||
+}
|
Loading…
Reference in New Issue
Block a user