Menu

#268 Port to libsdl2

1.25.x
closed-fixed
nobody
None
5
2021-10-18
2018-05-14
Ross Burton
No

libsdl 1.2 is dead upstream, mpg123 should be able to use libsdl2.

Discussion

  • Thomas Orgis

    Thomas Orgis - 2018-05-15

    Am Mon, 14 May 2018 16:41:32 -0000
    schrieb "Ross Burton" burtonini@users.sourceforge.net:

    libsdl 1.2 is dead upstream, mpg123 should be able to use libsdl2.

    Funny thing: it is. You just need to change one line in configure.ac:

    I just changed
    PKG_CHECK_MODULES(SDL, sdl, output_modules="$output_modules sdl" HAVE_SDL="yes", HAVE_SDL="no" check_failed=yes)
    into
    PKG_CHECK_MODULES(SDL, sdl2, output_modules="$output_modules sdl" HAVE_SDL="yes", HAVE_SDL="no" check_failed=yes)
    and things worked.

    The API did not change. The main question for me is now if I should
    introduce the output module sdl2 or have sdl depend on either SDL1 or
    SDL2 behind the scenes.

     
  • Ross Burton

    Ross Burton - 2018-05-15

    Yes I suspected the port would be trivial, there was only one change to audio processing (buffer isn't cleared for you). I'd argue that as libsdl1 is dead, the sdl port should be for sdl2.

     
  • Thomas Orgis

    Thomas Orgis - 2019-04-07

    I should not forget this for the next release. Easy enough change.

     
  • Thomas Orgis

    Thomas Orgis - 2019-07-21

    Note: next release means 1.26.0, not 1.25.x.

     
  • Thomas Orgis

    Thomas Orgis - 2020-05-16
    • status: open --> closed-fixed
     

Log in to post a comment.

MongoDB Logo MongoDB