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

Obtient la commande SRC actuelle.

## Syntaxe

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

### Paramètres

*context*   \_In\_\
Type : [SHAPE\_SRC\_CONTEXT](/fr-CA/reference/audio/shapesrccontext/structs/shape_src_context)\*

Pointeur vers un objet [SHAPE\_SRC\_CONTEXT](/fr-CA/reference/audio/shapesrccontext/structs/shape_src_context).

### Valeur de retour

Type : SHAPE\_SRC\_COMMAND\_TYPE

Un membre de l'énumération [SHAPE\_SRC\_COMMAND\_TYPE](/fr-CA/reference/audio/shapesrccontext/enums/shape_src_command_type).

## Remarques

Les trois commandes SRC sont les suivantes.

| Commande | Action |
| - | - |
| `SHAPE_SRC_COMMAND_TYPE_START` | Effectuer le traitement normal et s'attendre à ce que d'autres données audio suivent le graphe de flux actuel. |
| `SHAPE_SRC_COMMAND_TYPE_STOP_IMMEDIATE` | Arrêter immédiatement le traitement des données XMA ou PCM sources. Le SRC produit une mémoire tampon remplie de zéros pour cette trame. |
| `SHAPE_SRC_COMMAND_TYPE_STOP_END` | Arrêter le traitement après le paquet actuel. |

Pour plus de détails, consultez [SHAPE\_SRC\_COMMAND\_TYPE](/fr-CA/reference/audio/shapesrccontext/enums/shape_src_command_type).

Pour modifier la commande SRC, utilisez [SetShapeSrcCommand](/fr-CA/reference/audio/shapesrccontext/functions/shapesrccontext_setshapesrccommand).

Les commandes SRC peuvent être signalées comme bloquées. Pour plus d'informations, consultez la section [Commandes bloquées](/fr-CA/build/console-features/audio/overviews/shape-overview#ID4EBGAC) de la [Vue d'ensemble de SHAPE](/fr-CA/build/console-features/audio/overviews/shape-overview).

## Configuration requise

**En-tête :** shapesrccontext.h

**Plateformes prises en charge :** consoles de la famille XBOX One et consoles XBOX Series

## Voir aussi

[ShapeSrcContext](/fr-CA/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)
