| Summary: | Cannot build with libmad support | ||
|---|---|---|---|
| Product: | SDL_mixer | Reporter: | sfalexrog |
| Component: | misc | Assignee: | Sam Lantinga <slouken> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | ||
| Version: | unspecified | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Attachments: | Proposed fix | ||
Fixed, thanks! https://hg.libsdl.org/SDL_mixer/rev/0a88173a913a |
Created attachment 2885 [details] Proposed fix As of hg d10f63427a5f, SDL_mixer fails to build with libmad support, complaining about unknown "mixer" variable in a call to SDL_MixAudioFormat (lines 267-268). This was introduced in hg 298d69a81cc9. In music_mad.c, mixer is not defined as a global variable, but is stored in the mad_data structure. A possible fix would be to access the mixer stored in mad_data.