# SDL\_mixer: Revert https://github.com/libsdl-org/SDL\_mixer/pull/521 (27462)

**URL:** <https://discourse.libsdl.org/t/sdl-mixer-revert-https-github-com-libsdl-org-sdl-mixer-pull-521-27462/44107>\
**Category:** SDL Commits\
**Created:** [June 3, 2023, 10:56pm UTC](https://discourse.libsdl.org/t/sdl-mixer-revert-https-github-com-libsdl-org-sdl-mixer-pull-521-27462/44107 "2023-06-03T22:56:08Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![SDLPushPostBot](https://discourse.libsdl.org/user_avatar/discourse.libsdl.org/sdlpushpostbot/32/4370_2.png) [@SDLPushPostBot](https://discourse.libsdl.org/u/SDLPushPostBot)\
**Post date:** [June 3, 2023, 10:56pm UTC](https://discourse.libsdl.org/t/sdl-mixer-revert-https-github-com-libsdl-org-sdl-mixer-pull-521-27462/44107/1 "2023-06-03T22:56:08Z")

</div>

> <https://github.com/libsdl-org/SDL_mixer/commit/27462e33d6609737cfdb0dc4c857b7f8ea3b9972>
>
> See https://github.com/libsdl-org/SDL\_mixer/issues/519#issuecomment-1575096720

```diff
From 27462e33d6609737cfdb0dc4c857b7f8ea3b9972 Mon Sep 17 00:00:00 2001
From: Ozkan Sezer <[EMAIL REDACTED]>
Date: Sun, 4 Jun 2023 01:55:20 +0300
Subject: [PATCH] Revert https://github.com/libsdl-org/SDL_mixer/pull/521

See https://github.com/libsdl-org/SDL_mixer/issues/519#issuecomment-1575096720
---
 src/codecs/music_fluidsynth.c | 55 ++---------------------------------
 1 file changed, 2 insertions(+), 53 deletions(-)

diff --git a/src/codecs/music_fluidsynth.c b/src/codecs/music_fluidsynth.c
index cd92e7c8..9678d2ef 100644
--- a/src/codecs/music_fluidsynth.c
+++ b/src/codecs/music_fluidsynth.c
@@ -39,9 +39,6 @@ typedef struct {
 #if (FLUIDSYNTH_VERSION_MAJOR >= 2)
     void (*delete_fluid_player)(fluid_player_t*);
     void (*delete_fluid_synth)(fluid_synth_t*);
- int (*fluid_player_seek)(fluid_player_t*, int);
- int (*fluid_player_get_total_ticks)(fluid_player_t*);
- int (*fluid_player_get_current_tick)(fluid_player_t*);
 #else
     int (*delete_fluid_player)(fluid_player_t*);
     int (*delete_fluid_synth)(fluid_synth_t*);
@@ -88,9 +85,6 @@ static int FLUIDSYNTH_Load()
 #if (FLUIDSYNTH_VERSION_MAJOR >= 2)
         FUNCTION_LOADER(delete_fluid_player, void (*)(fluid_player_t*))
         FUNCTION_LOADER(delete_fluid_synth, void (*)(fluid_synth_t*))
- FUNCTION_LOADER(fluid_player_seek, int (*)(fluid_player_t*, int))
- FUNCTION_LOADER(fluid_player_get_total_ticks, int (*)(fluid_player_t*))
- FUNCTION_LOADER(fluid_player_get_current_tick, int (*)(fluid_player_t*))
 #else
         FUNCTION_LOADER(delete_fluid_player, int (*)(fluid_player_t*))
         FUNCTION_LOADER(delete_fluid_synth, int (*)(fluid_synth_t*))
@@ -280,19 +274,10 @@ static int FLUIDSYNTH_Play(void *context, int play_count)
 {
     FLUIDSYNTH_Music *music = (FLUIDSYNTH_Music *)context;
     fluidsynth.fluid_player_set_loop(music->player, play_count);
-#if (FLUIDSYNTH_VERSION_MAJOR >= 2)
- fluidsynth.fluid_player_seek(music->player, 0);
-#endif
     fluidsynth.fluid_player_play(music->player);
     return 0;
 }
 
-static void FLUIDSYNTH_Resume(void *context)
-{
- FLUIDSYNTH_Music *music = (FLUIDSYNTH_Music *)context;
- fluidsynth.fluid_player_play(music->player);
-}
-
 static SDL_bool FLUIDSYNTH_IsPlaying(void *context)
 {
     FLUIDSYNTH_Music *music = (FLUIDSYNTH_Music *)context;
@@ -326,15 +311,6 @@ static int FLUIDSYNTH_GetAudio(void *context, void *data, int bytes)
 }
 
 static void FLUIDSYNTH_Stop(void *context)
-{
- FLUIDSYNTH_Music *music = (FLUIDSYNTH_Music *)context;
- fluidsynth.fluid_player_stop(music->player);
-#if (FLUIDSYNTH_VERSION_MAJOR >= 2)
- fluidsynth.fluid_player_seek(music->player, 0);
-#endif
-}
-
-static void FLUIDSYNTH_Pause(void *context)
 {
     FLUIDSYNTH_Music *music = (FLUIDSYNTH_Music *)context;
     fluidsynth.fluid_player_stop(music->player);
@@ -362,27 +338,6 @@ static void FLUIDSYNTH_Delete(void *context)
     SDL_free(music);
 }
 
-#if (FLUIDSYNTH_VERSION_MAJOR >= 2)
-static int FLUIDSYNTH_Seek(void *context, double position)
-{
- FLUIDSYNTH_Music *music = (FLUIDSYNTH_Music *)context;
- fluidsynth.fluid_player_seek(music->player, (int)(position * 1000));
- return 0;
-}
-
-static double FLUIDSYNTH_Tell(void *context)
-{
- FLUIDSYNTH_Music *music = (FLUIDSYNTH_Music *)context;
- return fluidsynth.fluid_player_get_current_tick(music->player) / 1000.0;
-}
-
-static double FLUIDSYNTH_Duration(void* context)
-{
- FLUIDSYNTH_Music *music = (FLUIDSYNTH_Music *)context;
- return fluidsynth.fluid_player_get_total_ticks(music->player) / 1000.0;
-}
-#endif
-
 Mix_MusicInterface Mix_MusicInterface_FLUIDSYNTH =
 {
     "FLUIDSYNTH",
@@ -401,23 +356,17 @@ Mix_MusicInterface Mix_MusicInterface_FLUIDSYNTH =
     FLUIDSYNTH_IsPlaying,
     FLUIDSYNTH_GetAudio,
     NULL, /* Jump */
-#if (FLUIDSYNTH_VERSION_MAJOR >= 2)
- FLUIDSYNTH_Seek,
- FLUIDSYNTH_Tell,
- FLUIDSYNTH_Duration,
-#else
     NULL, /* Seek */
     NULL, /* Tell */
     NULL, /* Duration */
-#endif
     NULL, /* LoopStart */
     NULL, /* LoopEnd */
     NULL, /* LoopLength */
     NULL, /* GetMetaTag */
     NULL, /* GetNumTracks */
     NULL, /* StartTrack */
- FLUIDSYNTH_Pause,
- FLUIDSYNTH_Resume,
+ NULL, /* Pause */
+ NULL, /* Resume */
     FLUIDSYNTH_Stop,
     FLUIDSYNTH_Delete,
     NULL, /* Close */

```
