xWMA Command-Line Encoder

Using the xwmaencoder tool

The xWMA command-line encoder encodes a sound file in the xWMA format.

xWMAEncode [-b N] Input File Output File
Option Description
-b N Specifies bitrate. The default bitrate is 48000. The following table shows the allowable input formats and the bitrates that can be specified for those formats. Bitrates in bold are the actual bitrates available. Non-bold bitrates are provided as a convenience when you are batch processing audio files. They will map to the closest bitrate available.
Input sample rate Input channels Allowed bitrates
22050 mono 20000, 48000, 192000
22050 stereo 32000, 48000, 192000
32000 mono 20000, 48000, 192000
32000 stereo 32000, 48000, 192000
44100 mono 32000, 48000, 96000, 192000
44100 stereo 32000, 48000, 96000, 192000
44100 5.1 48000, 96000 (maps to 128000), 192000
48000 stereo 48000, 64000, 96000, 160000, 192000
48000 5.1 48000 (maps to 128000), 192000
Other combinations are supported by converting the source data to the nearest valid sample rate. The conversion has the following exceptions.
  • A bitrate of 20000 can only be specified for mono files.
  • A bitrate of 32000 cannot be specified for 6-channel files.
  • A bitrate of 64000 or 160000 can only be specified for stereo files.
  • Conversions resulting in sample rates that are less than 50% or greater than 200% of the original sample rate will produce a warning message.
Input FileFile name of the file to convert.
Note
If the input is a WAVE file, the output will be XWMA. Otherwise, the input is treated as an XWMA file with the output being a WAVE file.
Output FileFile name of the converted file.

Writing your own XWMA encoder tool

It is possible to write your own coding tool using the methods defined in xwmaencoder.h and implemented in xwmaencoder.lib. The xwmaencoder.h file is located by default in the C:\Program Files (x86)\Microsoft Durango XDK\PC\include folder, and the xwmaencoder.lib file is located by default in the C:\Program Files (x86)\Microsoft Durango XDK\PC\lib\amd64 folder.

The single method available in the header and library is XWMAEncoder.

In this section

XWMA Encoder Reference
Describes the functions available in xwmaencoder.lib.

See also

xWMA Overview