New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
MP3 support not available #299
Comments
Hmm weird, it seems to not work on my Linux laptop too. I'll check on this more when I'm back from overseas. |
Thanks. |
It seems like sdl2_mixer 2.0.2's MP3 support is broken? When I reverted to 2.0.1 on both Linux and macOS, it seems to work. on macOS, I had to checkout Homebrew's formula back to when sdl2_mixer was still 2.0.1. Something like this (assuming sdl2 and sdl2_mixer aren't installed yet):
If everything performed successfully, you should be able to run the program with MP3 support. |
Can confirm with OGG on Arch Linux. Downgrading worked. |
@veeableful Thanks! You're really save me from dying of trying to figure out why MP3 not supported in macOS. |
For the latest homebrew, run |
Thanks @ryancheung! I'll add that command to the README as alternate installation method for macOS, maybe eventually replace the current one. |
This behavior in sdl2_mixer 2.02 comes from a bug mentioned in: https://discourse.libsdl.org/t/bug-sdl2-mixer-init-error-format-support-not-available/23705/2 Workaround: Call Mix.OpenAudio before Mix.Init, like this:
|
As of February 2019 brew on MacOS doesn't accept options anymore. To get mp3 support working, I had to do the following: $ brew install mpg123 Look for --disable-music-mp3-mpg123 and change this to --enable-music-mp3-mpg123 $ brew reinstall --build-from-source sdl2_mixer That fixed it for me. |
Dude yes!!! Thank you so much!!! |
Mac OS 10.13.2
brew install sdl2_mixer --with-flac --with-fluid-synth --with-libmikmod --with-libmodplug --with-smpeg2 --with-mpg123
The text was updated successfully, but these errors were encountered: