Mod Archive Forums

Community => Project / Coder's Corner => Topic started by: zenon on April 18, 2010, 19:22:50

Title: How wav is stored in XM
Post by: zenon on April 18, 2010, 19:22:50
Hi all, for my XM development purpose I wish to know how a wave is stored in xm standards.

I ready several specs but I'm not sure what I do is right.

Is it right if I encode entire (header includer) wav with delta encoding and put in into sample data?

May I follow the little code sample here at http://en.wikipedia.org/wiki/Delta_encoding ?

And just one last question, does it works even for a stereo sample or I have first to split channels?

Thanks in advance :)
Title: Re: How wav is stored in XM
Post by: Saga Musix on April 18, 2010, 19:24:37
Why do you ask again? If my previous explanation was unclear, please tell me. Or are you just oblivious? :P
Title: Re: How wav is stored in XM
Post by: zenon on April 18, 2010, 20:02:37
lol !

 I didn't want to bother always you, these days I haven't got my development software so I'm feeling a bit nervous and I'm collecting as many info as I can... ;D
This time I wasn't sure if I must do the split channel job only for the for unofficial stereo addon you told me in the other forum or in general for any stereo sample I must put on xm.
Title: Re: How wav is stored in XM
Post by: Saga Musix on April 18, 2010, 22:02:05
When using stereo samples, the channels are stored separately, meaning that you first completely delta-encode the left channel, and then you do the same thing with the right channel and put it after the left channel.
Title: Re: How wav is stored in XM
Post by: raina on April 18, 2010, 23:07:00
...stereo samples shouldn't really go in XMs.
Title: Re: How wav is stored in XM
Post by: Saga Musix on April 19, 2010, 08:56:56
...stereo samples shouldn't really go in XMs.
Still, they are supported in a wide variety of trackers and players and they're useful for his goal (writing a XRNS to XM converter).