Skip to main content
Encodes the input streams into XMA format.

Syntax

Parameters

InputStreamCount Type: DWORD Number of input streams. pStreams Type: XMAENCODERSTREAM * Pointer to the input streams. Compression Type: DWORD XMA2 compression quality level to use (1 to 100). Flags Type: DWORD Zero, or one or more of the following flags. BlockSizeInKbytes Type: DWORD XMA2 compression block size to use in KB (2 to 8190). This can’t be zero. ppEncodedBuffer Type: VOID ** Pointer to a pointer to the buffer to contain the encoded data. pEncodedBufferSize Type: DWORD * Pointer to a DWORD to contain the encoded buffer size. ppEncodedBufferFormat Type: XMA2WAVEFORMATEX ** Pointer to a pointer to a structure to contain the format details of the encoded streams. pEncodedBufferFormatSize Type: DWORD * Pointer to a DWORD to contain the size of the format structure. ppSeekTable Type: DWORD ** Pointer to a pointer to contain the seek table. pSeekTableSize Type: DWORD * Pointer to a DWORD to contain the seek table size.

Return value

Type: HRESULT Returns S_OK if successful; otherwise, returns an error code from the following table.

Requirements

Header: xmaencoder.h Library: xmaencoder.lib

See also

XMA2 encoder tool
Last modified on August 4, 2026