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

# GetShapeSrcCommandType

> GetShapeSrcCommandType

# GetShapeSrcCommandType

Obtém o comando atual do SRC.

## Sintaxe

```cpp theme={null}
SHAPE_SRC_COMMAND_TYPE GetShapeSrcCommandType(  
         const SHAPE_SRC_CONTEXT* context  
)  
```

### Parâmetros

*context*   \_In\_\
Tipo: [SHAPE\_SRC\_CONTEXT](/pt-BR/reference/audio/shapesrccontext/structs/shape_src_context)\*

Ponteiro para um objeto [SHAPE\_SRC\_CONTEXT](/pt-BR/reference/audio/shapesrccontext/structs/shape_src_context).

### Valor retornado

Tipo: SHAPE\_SRC\_COMMAND\_TYPE

Um membro da enumeração [SHAPE\_SRC\_COMMAND\_TYPE](/pt-BR/reference/audio/shapesrccontext/enums/shape_src_command_type).

## Comentários

Os três comandos do SRC são os seguintes.

| Comando | Ação |
| - | - |
| `SHAPE_SRC_COMMAND_TYPE_START` | Executar o processamento normal e esperar que mais dados de áudio sigam o flowgraph atual. |
| `SHAPE_SRC_COMMAND_TYPE_STOP_IMMEDIATE` | Parar imediatamente o processamento dos dados XMA ou PCM de origem. O SRC gera um buffer zerado para este quadro. |
| `SHAPE_SRC_COMMAND_TYPE_STOP_END` | Parar o processamento após o pacote atual. |

Para obter mais detalhes, consulte [SHAPE\_SRC\_COMMAND\_TYPE](/pt-BR/reference/audio/shapesrccontext/enums/shape_src_command_type).

Para alterar o comando do SRC, use [SetShapeSrcCommand](/pt-BR/reference/audio/shapesrccontext/functions/shapesrccontext_setshapesrccommand).

Os comandos do SRC podem ser relatados como bloqueados. Para obter mais informações, consulte a seção [Comandos bloqueados](/pt-BR/build/console-features/audio/overviews/shape-overview#ID4EBGAC) de [Visão geral do SHAPE](/pt-BR/build/console-features/audio/overviews/shape-overview).

## Requisitos

**Cabeçalho:** shapesrccontext.h

**Plataformas com suporte:** consoles da família XBOX One e consoles XBOX Series

## Confira também

[ShapeSrcContext](/pt-BR/reference/audio/shapesrccontext/shapesrccontext_members)


## Related topics

- [GetShapeSrcCommandType](/reference/audio/shapesrccontext/functions/getshapesrccommandtype.md)
- [SHAPE_SRC_COMMAND_TYPE](/reference/audio/shapesrccontext/enums/shape_src_command_type.md)
- [SetShapeSrcCommand](/reference/audio/shapesrccontext/functions/shapesrccontext_setshapesrccommand.md)
