seek table might need to be byte swapped. The code to do this is in the XBOX One format section of this topic.
Using XMA2Encode
The following code and table describe how to use XMA2Encode.Remarks
All options can be abbreviated to their first letters. The following table lists the error codes that XMA2Encode can print to indicate problems with encoding.XBOX One format
The output of XMA2Encode must beULONG byte-swapped for XBOX One. If the input is a .wav file, the output can be used without alteration.
To byte-swap the seek table, use the following lines of code.
Writing your own XMA encoder tool
It’s possible to write your own encoder tool by using the methods defined in xmaencoder.h and implemented in xmaencoder.lib. The xmaencoder.h file is located by default in the C:\Program Files (x86)\Microsoft GDK\191100\GXDK\toolKit\include folder. The xmaencoder.lib file is located by default in the C:\Program Files (x86)\Microsoft GDK\191100\GXDK\toolKit\lib\amd64 folder. The single method that’s available in the header and library is XAudio2XMAEncoder. Don’t use theXMA2InMemoryEncoder and XMAInMemoryEncoder methods (legacy) that are defined in the header.
