Take the 2-minute tour ×
Game Development Stack Exchange is a question and answer site for professional and independent game developers. It's 100% free, no registration required.

Some of the music I've made for my game have note bends in them (1xx Portamento up)...The problem is that when they play in my game, the note bends and then goes right back to original note instead of staying at the new tone it bends into.

I believe this to be an issue with SDL_Mixer and not with the XM file itself since it plays just fine in any tracker program I load it into. Is there anything in the SDL_Mixer loading/playing functions that I could do to fix this?

share|improve this question
1  
To confirm it's not the XM file, have you played it with FMOD and/or BassMOD? Be sure to play it in as many players as you can. tracker formats aren't a perfect standard. Could you also provide an example file? We don't need your song, just a sequence with notebending. Bonus points for audio renders of intended effect and what you get in the game. –  michael.bartnett Jan 14 '12 at 2:34
add comment

2 Answers

Unfortunately, the module formats (family which XM format is part of) are not perfectly specified, and various replay routines play them slightly differently.

There's really nothing you can do, apart from "fixing" the replay routine (to which you probably have no source) or modifying the XM itself (so it plays "wrong" in the XM editor, but "right" with your replay routine of choise).

share|improve this answer
add comment

MikMod is, for lack of better words, often horrible. It is likely the root cause for your misrendering. The mixing in SDL_mixer doesn't know anything about notes or effects, it just mixes together one or more streams of audio.

I asked some friends of mine with extensive experience in module quirks and they recommend using a more sane module rendering library, like DUMB (no affiliation), which I've used in the past in my software.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.