> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SHARED_SHAPE_CONTEXTS

> SHARED_SHAPE_CONTEXTS

# SHARED\_SHAPE\_CONTEXTS

이 구조체는 SHAPE(Scalable Hardware Audio Processing Engine) 및 XMA(XBOX Media Audio) 리소스가 `XAudio2` 인스턴스와 공유될 때 사용됩니다.

## Syntax

```cpp theme={null}
typedef 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;  
} SHARED_SHAPE_CONTEXTS  
```

### Members

*shapeContexts*\
Type: [SHAPE\_CONTEXTS\*](/reference/audio/acphal/structs/shape_contexts)

[SHAPE\_CONTEXTS](/reference/audio/acphal/structs/shape_contexts) 구조체에 대한 포인터입니다.

*sharedSrcContextIndex*\
Type: UINT32

공유할 첫 번째 샘플 레이트 변환기(SRC) 컨텍스트의 인덱스입니다.

*sharedEqCompContextIndex*\
Type: UINT32

공유할 첫 번째 EQ/Comp 컨텍스트의 인덱스입니다.

*sharedFiltVolContextIndex*\
Type: UINT32

공유할 첫 번째 Filter/Volume 컨텍스트의 인덱스입니다.

*sharedDmaContextIndex*\
Type: UINT32

공유할 첫 번째 DMA(Direct Memory Access) 컨텍스트의 인덱스입니다.

*sharedXmaContextIndex*\
Type: UINT32

공유할 첫 번째 XMA 컨텍스트의 인덱스입니다.

*sharedPcmContextIndex*\
Type: UINT32

공유할 첫 번째 PCM(pulse-code modulation) 컨텍스트의 인덱스입니다.

*numSharedSrcContexts*\
Type: UINT32

*sharedSrcContextIndex*부터 시작하여 공유할 SRC 컨텍스트의 수입니다.

*numSharedEqCompContexts*\
Type: UINT32

*sharedEqCompContextIndex*부터 시작하여 공유할 EQ/Comp 컨텍스트의 수입니다.

*numSharedFiltVolContexts*\
Type: UINT32

*sharedFiltVolContextIndex*부터 시작하여 공유할 Filter/Volume 컨텍스트의 수입니다.

*numSharedDmaContexts*\
Type: UINT32

*sharedDmaContextIndex*부터 시작하여 공유할 DMA 컨텍스트의 수입니다.

*numSharedXmaContexts*\
Type: UINT32

*sharedXmaContextIndex*부터 시작하여 공유할 XMA 컨텍스트의 수입니다.

*numSharedPcmContexts*\
Type: UINT32

*sharedPcmContextIndex*부터 시작하여 공유할 PCM 컨텍스트의 수입니다.

## Remarks

이 구조체는 [XAudio2CreateWithSharedContexts](/reference/audio/xaudio2xbox/functions/xaudio2createwithsharedcontexts) 함수에서 사용됩니다. 이 함수는 `XAudio2Create`와 동일하게 작동하지만 추가 매개변수로 `SHARED_SHAPE_CONTEXTS`를 받습니다. 여러 `IXAudio2` 인스턴스 간에 SHAPE의 상태를 공유할 수 있습니다.

## Requirements

**Header:** acphal.h

**지원 플랫폼:** XBOX One 제품군 콘솔 및 XBOX Series 콘솔

## See also

[XAudio2CreateWithSharedContexts](/reference/audio/xaudio2xbox/functions/xaudio2createwithsharedcontexts)\
[XAudio2Create](https://learn.microsoft.com/windows/desktop/api/xaudio2/nf-xaudio2-xaudio2create)\
[AcpHal](/reference/audio/acphal/acphal_members)
