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
17ec5d80
Commit
17ec5d80
authored
6 years ago
by
Marco Z
Browse files
Options
Downloads
Patches
Plain Diff
Mixer: Better MODPLUG/MP3_MAD defines
(cherry picked from commit
5b724e18
)
parent
fdbe3e80
No related branches found
No related tags found
2 merge requests
!488
Merge in next and don't billboard papersprites in GL
,
!278
Music Code Cleanup
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sdl/mixer_sound.c
+8
-10
8 additions, 10 deletions
src/sdl/mixer_sound.c
with
8 additions
and
10 deletions
src/sdl/mixer_sound.c
+
8
−
10
View file @
17ec5d80
...
@@ -34,6 +34,12 @@
...
@@ -34,6 +34,12 @@
(SDL_MIXER_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
(SDL_MIXER_COMPILEDVERSION >= SDL_VERSIONNUM(X, Y, Z))
#endif
#endif
// thanks alam for making the buildbots happy!
#if SDL_MIXER_VERSION_ATLEAST(2,0,3)
#define MUS_MP3_MAD MUS_MP3_MAD_UNUSED
#define MUS_MODPLUG MUS_MODPLUG_UNUSED
#endif
#ifdef HAVE_LIBGME
#ifdef HAVE_LIBGME
#include
"gme/gme.h"
#include
"gme/gme.h"
#define GME_TREBLE 5.0
#define GME_TREBLE 5.0
...
@@ -501,17 +507,9 @@ musictype_t I_SongType(void)
...
@@ -501,17 +507,9 @@ musictype_t I_SongType(void)
return
MU_NONE
;
return
MU_NONE
;
else
if
(
Mix_GetMusicType
(
music
)
==
MUS_MID
)
else
if
(
Mix_GetMusicType
(
music
)
==
MUS_MID
)
return
MU_MID
;
return
MU_MID
;
else
if
(
Mix_GetMusicType
(
music
)
==
MUS_MOD
else
if
(
Mix_GetMusicType
(
music
)
==
MUS_MOD
||
Mix_GetMusicType
(
music
)
==
MUS_MODPLUG
)
#if SDL_MIXER_VERSION_ATLEAST(2,0,3)
||
Mix_GetMusicType
(
music
)
==
MUS_MODPLUG_UNUSED
#endif
)
return
MU_MOD
;
return
MU_MOD
;
else
if
(
Mix_GetMusicType
(
music
)
==
MUS_MP3
else
if
(
Mix_GetMusicType
(
music
)
==
MUS_MP3
||
Mix_GetMusicType
(
music
)
==
MUS_MP3_MAD
)
#if SDL_MIXER_VERSION_ATLEAST(2,0,3)
||
Mix_GetMusicType
(
music
)
==
MUS_MP3_MAD_UNUSED
#endif
)
return
MU_MP3
;
return
MU_MP3
;
else
else
return
(
musictype_t
)
Mix_GetMusicType
(
music
);
return
(
musictype_t
)
Mix_GetMusicType
(
music
);
...
...
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