> ## 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.

# SetShapeSrcCommand

> SetShapeSrcCommand

# SetShapeSrcCommand

Sample Rate Convertor(SRC) 명령을 설정합니다.

## Syntax

```cpp theme={null}
HRESULT SetShapeSrcCommand(  
         SHAPE_SRC_CONTEXT* context,  
         SHAPE_SRC_COMMAND_TYPE command  
)  
```

### 매개변수

*context*   \_Inout\_\
형식: [SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context)\*

[SHAPE\_SRC\_CONTEXT](/reference/audio/shapesrccontext/structs/shape_src_context) 객체에 대한 포인터입니다.

*command*   \
형식: [SHAPE\_SRC\_COMMAND\_TYPE](/reference/audio/shapesrccontext/enums/shape_src_command_type)

[SHAPE\_SRC\_COMMAND\_TYPE](/reference/audio/shapesrccontext/enums/shape_src_command_type) 열거형의 멤버입니다.

### 반환 값

형식: HRESULT

HRESULT 성공 또는 오류 코드입니다.

## 설명

세 가지 SRC 명령은 다음과 같습니다.

| 명령                                      | 동작                                                               |
| --------------------------------------- | ---------------------------------------------------------------- |
| `SHAPE_SRC_COMMAND_TYPE_START`          | 일반 처리를 수행하며 현재 flowgraph를 따라 추가 오디오 데이터가 이어질 것으로 예상합니다.          |
| `SHAPE_SRC_COMMAND_TYPE_STOP_IMMEDIATE` | 소스 XMA 또는 PCM 데이터의 처리를 즉시 중지합니다. 이 프레임에서 SRC는 0으로 채워진 버퍼를 출력합니다. |
| `SHAPE_SRC_COMMAND_TYPE_STOP_END`       | 현재 패킷 이후에 처리를 중지합니다.                                             |

자세한 내용은 [SHAPE\_SRC\_COMMAND\_TYPE](/reference/audio/shapesrccontext/enums/shape_src_command_type)을 참조하세요.

현재 SRC 명령을 가져오려면 [GetShapeSrcCommandType](/reference/audio/shapesrccontext/functions/getshapesrccommandtype)을 사용합니다.

SRC 명령은 차단됨(blocked)으로 보고될 수 있습니다. 자세한 내용은 [Overview of SHAPE](/build/console-features/audio/overviews/shape-overview)의 [Blocked commands](/build/console-features/audio/overviews/shape-overview#ID4EBGAC) 섹션을 참조하세요.

## 요구 사항

**헤더:** shapesrccontext.h

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

## 참고 항목

[ShapeSrcContext](/reference/audio/shapesrccontext/shapesrccontext_members)


## Related topics

- [SetShapeSrcCommand function](/ko/reference/audio/shapeflowgraph/functions/shapeflowgraph_setshapesrccommand.md)
- [SHAPE_SRC_COMMAND_TYPE](/ko/reference/audio/shapesrccontext/enums/shape_src_command_type.md)
- [GetShapeSrcCommandType](/ko/reference/audio/shapesrccontext/functions/getshapesrccommandtype.md)
- [ShapeFlowGraph](/ko/reference/audio/shapeflowgraph/shapeflowgraph_members.md)
- [ShapeSrcContext](/ko/reference/audio/shapesrccontext/shapesrccontext_members.md)
