Mod Archive Forums Mod Archive Forums
Advanced search  

News:

Please note: Your main modarchive.org account will not work here, you must create a forum account to post on the forums.

Pages: [1]   Go Down

Author Topic: How wav is stored in XM  (Read 11671 times)

0 Members and 2 Guests are viewing this topic.

zenon

  • New User
  • Offline Offline
  • Posts: 22
    • View Profile
How wav is stored in XM
« 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 :)
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: How wav is stored in XM
« Reply #1 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
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

zenon

  • New User
  • Offline Offline
  • Posts: 22
    • View Profile
Re: How wav is stored in XM
« Reply #2 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.
Logged

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: How wav is stored in XM
« Reply #3 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.
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker

raina

  • Milkytracker Moderator
  • Great Poster
  • ***
  • Offline Offline
  • Posts: 719
    • View Profile
    • raina.kapsi.fi
Re: How wav is stored in XM
« Reply #4 on: April 18, 2010, 23:07:00 »

...stereo samples shouldn't really go in XMs.

Saga Musix

  • TMA Moderator
  • Top Poster
  • ****
  • Offline Offline
  • Posts: 2571
  • I love OpenMPT! And Modules! And TMA! And Pie! :>
    • View Profile
    • Saga Musix - free module music and more!
Re: How wav is stored in XM
« Reply #5 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).
Logged
» My TMA artist profile
» Visit my music site: https://sagamusix.de/ [de, en]
» Visit my programming website: https://sagagames.de/ [de]
» Open ModPlug Tracker
Pages: [1]   Go Up