.XWB file format

Hi,

I need access to the WAV bits. I don't see a runtime interface to access this, so I was thinking I could extract them from the .xwb file. Now the problem is the file format. I see the .xap file format is listed in the docs, but nothing on .xwb.

How can I obtain access to the raw WAV bits in XACT

Regards.


Answer this question

.XWB file format

  • Satyendra Gupta

    I ran into a problem where I had the incorrect byte-order for the WAVEBANKMINIWAVEFORMAT.format thing that reports those values. Also, the wBitsPerSample is only defined by one bit, so I guess that flag is a defined for either 8 or 16 bits.


  • Donald Sechrest

    The WaveBank file format is in the header xact2wb.h (in the same folder as xact.h). The first "entry" in the file is the header: WAVEBANKHEADER. The header lists the location of all the segments in the file. The segment WAVEBANKDATA lists the number of wave entries in the file. The list of WAVEBANKENTRY's lists the location of each wave in the file along with their format and loop region.

  • dncjp

    Hi,

    Thx for the info. I managed to dig my way down to the WAVEBANKMINIWAVEFORMAT inside the WAVEBANKENTRY segment.

    Along the way I got appropriate values for things like:
    - # of bank entries
    - bank name
    - bank length

    However, the Format member in the WAVEBANKMINIWAVEFORMAT returns values that seem a little off, for example:

    Format.BitsPerSample() //16 - no problem
    Format.nChannels //3 Shouldn't this be 2
    Format.BlockAlign() //255 - sure i guess
    Format.nSamplesPerSec //22525 This is close to 22050, but I'm expecting
    //44100
    Format.wBitsPerSample //1 shouldn't this be 16 like above

    Suggestions


  • .XWB file format