We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 1887

Summary: libmad support broken
Product: SDL_mixer Reporter: Marcus von Appen <mva>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: unspecified   
Hardware: All   
OS: All   
Attachments: music_mad.c patch

Description Marcus von Appen 2013-06-03 06:55:16 UTC
Created attachment 1169 [details]
music_mad.c patch

MP3 support via libmad is currently broken, since the mad_data struct does not contain fields that are used in music_mad.c:

[...]
../music_mad.c: In function 'mad_openFileRW':
../music_mad.c:35: error: 'mad_data' has no member named 'src'
../music_mad.c:36: error: 'mad_data' has no member named 'freesrc'
../music_mad.c: In function 'mad_closeFile':
../music_mad.c:58: error: 'mad_data' has no member named 'freesrc'
../music_mad.c:59: error: 'mad_data' has no member named 'src'
../music_mad.c:59: error: 'mad_data' has no member named 'src'
gmake: *** [build/music_mad.lo] Error 1

A patch is attached.
Comment 1 Sam Lantinga 2013-06-03 22:56:29 UTC
Fixed!
http://hg.libsdl.org/SDL_mixer/rev/39fbc5a85070
http://hg.libsdl.org/SDL_mixer/rev/a0d34c8077a1

Please let me know if that doesn't work.