Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
pablo tescobar

[GZDoom] A playback error with stereo samples in MOD music

Recommended Posts

I found a MOD music playback bug in GZdoom: if there is a stereo sound sample in a MOD music file (IT, S3M, XM...) and it has either a bidi (ping pong) or On loop setting, then the right channel of that sample is played in a weird offset.

 

Here's how the sample looks like in OpenMPT:


unknown.png

 

I recorded ingame with OBS and this is the audio visualized in Vegas, where the highlighted area is the first map:

unknown.png?width=1249&height=684

 

I tested turning loop setting to Off in OpenMPT, and it's played perfectly normal ingame.

ITstereoexample.rar

Share this post


Link to post

GZDoom uses foo_DUMB as its module replayer. So the problem is likely to come from it. The version used in GZDoom hasn't been updated in a while, so perhaps it's been fixed since. Does your track play correctly in foobar2000?

Share this post


Link to post
6 minutes ago, Gez said:

GZDoom uses foo_DUMB as its module replayer. So the problem is likely to come from it. The version used in GZDoom hasn't been updated in a while, so perhaps it's been fixed since. Does your track play correctly in foobar2000?

Yes.

Share this post


Link to post

Bump:

I tested removing the soundbits after the end loop point in OpenMPT:


image.png.54e95d1eafbfb82da23624cf1db84411.png

 

Ingame, the problem is sort of fixed: the right channel is now played some milliseconds after the left channel begins, creating the surround sound effect.

image.png.3d3401ed5a96c0cfa33ba0de06d820ec.png

 

My verdict is that is based on the amount of extra sound bits after the end loop point as seen in OpenMPT. It's probably why in the first post the right channel sounds so off.

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×