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
Package registry
Model registry
Operate
Terraform modules
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
kaldrum
SRB2
Commits
75fb1cd2
Commit
75fb1cd2
authored
3 months ago
by
Alam Ed Arias
Browse files
Options
Downloads
Patches
Plain Diff
SDL_Mixer: options for all MIDI players in SDL-Mixer-X 2.5.0+
parent
a923bf70
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/sdl/mixer_sound.c
+12
-1
12 additions, 1 deletion
src/sdl/mixer_sound.c
with
12 additions
and
1 deletion
src/sdl/mixer_sound.c
+
12
−
1
View file @
75fb1cd2
...
@@ -199,7 +199,18 @@ static void MidiSoundfontPath_Onchange(void)
...
@@ -199,7 +199,18 @@ static void MidiSoundfontPath_Onchange(void)
// make sure that s_sound.c does not already verify these
// make sure that s_sound.c does not already verify these
// which happens when: defined(HAVE_MIXERX) && !defined(HAVE_MIXER)
// which happens when: defined(HAVE_MIXERX) && !defined(HAVE_MIXER)
static
CV_PossibleValue_t
midiplayer_cons_t
[]
=
{{
MIDI_OPNMIDI
,
"OPNMIDI"
},
{
MIDI_Fluidsynth
,
"Fluidsynth"
},
{
MIDI_Timidity
,
"Timidity"
},
{
MIDI_Native
,
"Native"
},
{
0
,
NULL
}};
static
CV_PossibleValue_t
midiplayer_cons_t
[]
=
{
{
MIDI_ADLMIDI
,
"ADLMIDI"
},
{
MIDI_OPNMIDI
,
"OPNMIDI"
},
{
MIDI_Timidity
,
"Timidity"
},
{
MIDI_Fluidsynth
,
"Fluidsynth"
},
#if SDL_MIXER_VERSION_ATLEAST(2,6,0)
{
MIDI_EDMIDI
,
"EDMIDI"
},
#endif
{
MIDI_Native
,
"Native"
},
{
MIDI_ANY
,
"Any"
},
{
0
,
NULL
}
};
consvar_t
cv_midiplayer
=
CVAR_INIT
(
"midiplayer"
,
"OPNMIDI"
/*MIDI_OPNMIDI*/
,
CV_CALL
|
CV_NOINIT
|
CV_SAVE
,
midiplayer_cons_t
,
Midiplayer_Onchange
);
consvar_t
cv_midiplayer
=
CVAR_INIT
(
"midiplayer"
,
"OPNMIDI"
/*MIDI_OPNMIDI*/
,
CV_CALL
|
CV_NOINIT
|
CV_SAVE
,
midiplayer_cons_t
,
Midiplayer_Onchange
);
consvar_t
cv_midisoundfontpath
=
CVAR_INIT
(
"midisoundfont"
,
"sf2/8bitsf.SF2"
,
CV_CALL
|
CV_NOINIT
|
CV_SAVE
,
NULL
,
MidiSoundfontPath_Onchange
);
consvar_t
cv_midisoundfontpath
=
CVAR_INIT
(
"midisoundfont"
,
"sf2/8bitsf.SF2"
,
CV_CALL
|
CV_NOINIT
|
CV_SAVE
,
NULL
,
MidiSoundfontPath_Onchange
);
consvar_t
cv_miditimiditypath
=
CVAR_INIT
(
"midisoundbank"
,
"./timidity"
,
CV_SAVE
,
NULL
,
NULL
);
consvar_t
cv_miditimiditypath
=
CVAR_INIT
(
"midisoundbank"
,
"./timidity"
,
CV_SAVE
,
NULL
,
NULL
);
...
...
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