libsdl-org / SDL_mixer

An audio mixer that supports various file formats for Simple Directmedia Layer.
zlib License
400 stars 137 forks source link

More modern backend for SDL_Mixer #244

Open SDLBugzilla opened 3 years ago

SDLBugzilla commented 3 years ago

This bug report was migrated from our old Bugzilla tracker.

Reported in version: unspecified Reported for operating system, platform: All, All

Comments on the original bug report:

On 2018-04-09 23:44:01 +0000, RyanBram wrote:

Currently, sdl_mixer use some MIDI and Module playback library which have one or some of following drawback:

  • Copyleft licensed;
  • Too many dependencies;
  • Too old or unmaintained;
  • Have playback glitch.

I recommended SDL developer to look for alternative libraries, such as:

  1. TinySoundfont for MIDI
  2. libxmp_lite for IT, XM, MOD, and S3M
  3. MiniMP3 for MP3
slouken commented 2 years ago

TinySoundfont support would be fine, but still requires a sound font library. Feel free to add a PR that implements this, if the current MIDI support isn't sufficient for you.

We've switched to libmodplug for MOD support.

I just added support for MiniMP3, and switched to using that for MP3 support by default.

Thanks!

sezero commented 2 years ago

I just added support for MiniMP3, and switched to using that for MP3 support by default.

dr_mp3 would have been a better choice, maybe?

slouken commented 2 years ago

Yes, possibly. Let's look at that shortly.

sezero commented 2 years ago

sdl12-compat uses it, @icculus' SDL_sound uses it, it is pretty well proven.

slouken commented 2 years ago

Yep, I plan to swap it out for minimp3.