Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
SRB2
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
STJr
SRB2
Commits
65e5794e
Commit
65e5794e
authored
6 years ago
by
Marco Z
Browse files
Options
Downloads
Patches
Plain Diff
HAVE_MIXERX and NOMIXERX compile flags (win32 only)
parent
73b4c4c5
No related branches found
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/sdl/Makefile.cfg
+2
-1
2 additions, 1 deletion
src/sdl/Makefile.cfg
src/sdl/mixer_sound.c
+3
-0
3 additions, 0 deletions
src/sdl/mixer_sound.c
src/win32/Makefile.cfg
+6
-0
6 additions, 0 deletions
src/win32/Makefile.cfg
with
11 additions
and
1 deletion
src/sdl/Makefile.cfg
+
2
−
1
View file @
65e5794e
...
@@ -80,7 +80,8 @@ ifdef NOMIXER
...
@@ -80,7 +80,8 @@ ifdef NOMIXER
else
else
i_sound_o
=
$(OBJDIR)/mixer_sound.o
i_sound_o
=
$(OBJDIR)/mixer_sound.o
OPTS+=-DHAVE_MIXER
OPTS+=-DHAVE_MIXER
ifdef
MINGW
ifdef
HAVE_MIXERX
OPTS+=-DHAVE_MIXERX
SDL_LDFLAGS+=-lSDL2_mixer_ext
SDL_LDFLAGS+=-lSDL2_mixer_ext
else
else
SDL_LDFLAGS+=-lSDL2_mixer
SDL_LDFLAGS+=-lSDL2_mixer
...
...
This diff is collapsed.
Click to expand it.
src/sdl/mixer_sound.c
+
3
−
0
View file @
65e5794e
...
@@ -100,6 +100,9 @@ void I_StartupSound(void)
...
@@ -100,6 +100,9 @@ void I_StartupSound(void)
#if SDL_MIXER_VERSION_ATLEAST(1,2,11)
#if SDL_MIXER_VERSION_ATLEAST(1,2,11)
Mix_Init
(
MIX_INIT_FLAC
|
MIX_INIT_MOD
|
MIX_INIT_MP3
|
MIX_INIT_OGG
);
Mix_Init
(
MIX_INIT_FLAC
|
MIX_INIT_MOD
|
MIX_INIT_MP3
|
MIX_INIT_OGG
);
#endif
#endif
#if HAVE_MIXERX
Mix_SetMidiPlayer
(
MIDI_OPNMIDI
);
#endif
if
(
Mix_OpenAudio
(
44100
,
AUDIO_S16SYS
,
2
,
2048
)
<
0
)
if
(
Mix_OpenAudio
(
44100
,
AUDIO_S16SYS
,
2
,
2048
)
<
0
)
{
{
...
...
This diff is collapsed.
Click to expand it.
src/win32/Makefile.cfg
+
6
−
0
View file @
65e5794e
...
@@ -15,8 +15,14 @@ else
...
@@ -15,8 +15,14 @@ else
HAVE_LIBGME
=
1
HAVE_LIBGME
=
1
LIBGME_CFLAGS
=
-I../libs/gme/include
LIBGME_CFLAGS
=
-I../libs/gme/include
LIBGME_LDFLAGS
=
-L../libs/gme/win32 -lgme
LIBGME_LDFLAGS
=
-L../libs/gme/win32 -lgme
ifndef
NOMIXERX
HAVE_MIXERX
=
1
SDL_CFLAGS?=-I../libs/SDL2/i686-w64-mingw32/include/SDL2
-I../libs/SDLMixerX/i686-w64-mingw32/include/SDL2
-Dmain
=
SDL_main
SDL_CFLAGS?=-I../libs/SDL2/i686-w64-mingw32/include/SDL2
-I../libs/SDLMixerX/i686-w64-mingw32/include/SDL2
-Dmain
=
SDL_main
SDL_LDFLAGS?=-L../libs/SDL2/i686-w64-mingw32/lib
-L../libs/SDLMixerX/i686-w64-mingw32/lib
-lmingw32
-lSDL2main
-lSDL2
-mwindows
SDL_LDFLAGS?=-L../libs/SDL2/i686-w64-mingw32/lib
-L../libs/SDLMixerX/i686-w64-mingw32/lib
-lmingw32
-lSDL2main
-lSDL2
-mwindows
else
SDL_CFLAGS?=-I../libs/SDL2/i686-w64-mingw32/include/SDL2
-I../libs/SDL2_mixer/i686-w64-mingw32/include/SDL2
-Dmain
=
SDL_main
SDL_LDFLAGS?=-L../libs/SDL2/i686-w64-mingw32/lib
-L../libs/SDL2_mixer/i686-w64-mingw32/lib
-lmingw32
-lSDL2main
-lSDL2
-mwindows
endif
endif
endif
ifndef
NOASM
ifndef
NOASM
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment