SHARED_SHAPE_CONTEXTS Structure

This structure is used when sharing SHAPE and XMA resources with XAudio2.

Syntax

struct SHARED_SHAPE_CONTEXTS {
    SHAPE_CONTEXTS *shapeContexts;
    UINT32 sharedSrcContextIndex;
    UINT32 sharedEqCompContextIndex;
    UINT32 sharedFiltVolContextIndex;
    UINT32 sharedDmaContextIndex;
    UINT32 sharedXmaContextIndex;
    UINT32 sharedPcmContextIndex;
    UINT32 numSharedSrcContexts;
    UINT32 numSharedEqCompContexts;
    UINT32 numSharedFiltVolContexts;
    UINT32 numSharedDmaContexts;
    UINT32 numSharedXmaContexts;
    UINT32 numSharedPcmContexts;
};  

Members

shapeContexts
Pointer to a SHAPE_CONTEXTS structure.

sharedSrcContextIndex
The index of the first SRC context to share.

sharedEqCompContextIndex
The index of the first EQCOMP context to share.

sharedFiltVolContextIndex
The index of the first FLTVOL context to share.

sharedDmaContextIndex
The index of the first DMA context to share.

sharedXmaContextIndex
The index of the first XMA context to share.

sharedPcmContextIndex
The index of the first PCM context to share.

numSharedSrcContexts
The number of SRC contexts to share, starting from sharedSrcContextIndex.

numSharedEqCompContexts
The number of EQCOMP contexts to share, starting from sharedEqCompContextIndex.

numSharedFiltVolContexts
The number of FLTVOL contexts to share, starting from sharedFiltVolContextIndex.

numSharedDmaContexts
The number of DMA contexts to share, starting from sharedDmaContextIndex.

numSharedXmaContexts
The number of XMA contexts to share, starting from sharedXmaContextIndex.

numSharedPcmContexts
The number of PCM contexts to share, starting from sharedPcmContextIndex.

For more information on sharing resources, refer to the XAudio2Create method.

Requirements

Header: Declared in acphal.h.

Library: Use acphal.lib.