Skip to content

Commit

Permalink
Deprecate SDL2 support
Browse files Browse the repository at this point in the history
  • Loading branch information
derselbst committed Feb 8, 2025
1 parent 662f95b commit 45882f0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -666,6 +666,7 @@ endif ( enable-libinstpatch )

unset ( SDL2_SUPPORT CACHE )
if ( enable-sdl2 )
message ( WARNING "SDL2 support is deprecated and will be removed in fluidsynth 2.5.0! Pls. use sdl3.")
find_package ( SDL2 QUIET )
if ( SDL2_FOUND )
if ( NOT DEFINED SDL2_VERSION )
Expand Down
1 change: 1 addition & 0 deletions src/drivers/fluid_sdl2.c
Original file line number Diff line number Diff line change
Expand Up @@ -224,6 +224,7 @@ new_fluid_sdl2_audio_driver(fluid_settings_t *settings, fluid_synth_t *synth)
/* Start to play */
SDL_PauseAudioDevice(dev->devid, 0);

FLUID_LOG(FLUID_WARN, "SDL2 support has been deprecated and will be removed in fluidsynth 2.5.0! Pls. use sdl3.");
return (fluid_audio_driver_t *) dev;
}
while(0);
Expand Down

0 comments on commit 45882f0

Please sign in to comment.