From 443068f46dcaa0f9eaec75d662fdff1344f76895 Mon Sep 17 00:00:00 2001 From: "Jakob L. Kreuze" Date: Sat, 13 Jan 2018 18:54:41 -0500 Subject: Loop music by default --- README.md | 4 ++-- patch/sdlmusic.cpp | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 1e9c533..51b63da 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# Duke on Fluidsynth +# Duke on FluidSynth This is a patchset I wrote for eduke32 that replaces the SDL2_Mixer backend, since its MIDI playback didn't work on my machine. @@ -15,7 +15,7 @@ you'll have to edit line 93 of `patch/sdlmusic.cpp`. # Demo Video -[![Duke on Fluidsynth](http://img.youtube.com/vi/mxkctwRZlHo/0.jpg)](http://www.youtube.com/watch?v=mxkctwRZlHo "Duke on Fluidsynth") +[![Duke on FluidSynth](http://img.youtube.com/vi/mxkctwRZlHo/0.jpg)](http://www.youtube.com/watch?v=mxkctwRZlHo "Duke on FluidSynth") # Installation diff --git a/patch/sdlmusic.cpp b/patch/sdlmusic.cpp index 62af485..e558096 100644 --- a/patch/sdlmusic.cpp +++ b/patch/sdlmusic.cpp @@ -90,6 +90,7 @@ int32_t MUSIC_Init(int32_t SoundCard, int32_t Address) player = new_fluid_player(synth); driver = new_fluid_audio_driver(settings, synth); + MUSIC_SetLoopFlag(MUSIC_LoopSong); // Loop by default fluid_synth_sfload(synth, "/usr/share/soundfonts/FluidR3_GM.sf2", 1); return MIDI_Ok; -- cgit v1.3