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 4427

Summary: ModPlug playing old dos .AMF format
Product: SDL_mixer Reporter: drnovice
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: WAITING --- QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sezeroz
Version: 2.0.4   
Hardware: x86_64   
OS: Windows 10   
Attachments: From CF2 Soundtrack

Description drnovice 2018-12-15 23:27:08 UTC
Created attachment 3549 [details]
From CF2 Soundtrack

Related to this topic: 
https://discourse.libsdl.org/t/back-to-integrate-mikmod-into-sdl2-mixer/25465/2

Some Cannon Fodder 2 soundtrack .AMF musics aren't played good by lib ModPlug.

File "02 - Menu.amf": you can heard some "biiip" whistle near at 38sec and 40sec
File "03 - Heli Animation.amf": same "biip" at the very start of song

I known ModPlug is a plugin/codec for modern Players (like VLC, Winamp, etc), but could it be fixed to play AMF correctly, like MikMod lib does, or even old dos Dual Module Player does?

Otherwise put back again LibMikMod on SDL2_mixer and use it for AMF format.
Comment 1 Ozkan Sezer 2018-12-16 07:17:21 UTC
(In reply to drnovice from comment #0)
> I known ModPlug is a plugin/codec for modern Players (like VLC, Winamp,
> etc),

It may be, but it has been always full of serious bugs, some of which
has only recently fixed.

>  but could it be fixed to play AMF correctly, like MikMod lib does, or
> even old dos Dual Module Player does?
> 
> Otherwise put back again LibMikMod on SDL2_mixer and use it for AMF format.

This should be reported at https://github.com/Konstanty/libmodplug
but let's keep this open too:  Maybe I can find some time and find
the source of the issue.
Comment 2 drnovice 2018-12-16 13:47:41 UTC
Yes, LibMikMod is release version 3.3.11.1, series 3:
http://mikmod.sourceforge.net/

I think it could be possibile maintain both MikMod & ModPlug, compiling dynamic or static linking to SDL2_Mixer, and give a priority to play same managed audio formats in case both libs are present.

I can PR on github an update of sln and visual studio project to using latest versions of them.
Comment 3 Ozkan Sezer 2021-02-07 18:15:09 UTC
FWIW, I tried running current SDL_mixer development tree with the
attached amf file here, I cannot hear that 'beep' when playing it
with the playmus example app.

Do you still experience your issue with current development source?