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

Définit la commande du convertisseur de fréquence d'échantillonnage (SRC).

## Syntaxe

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

### Paramètres

*context*   \_Inout\_\
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).

*command*   \
Type : [SHAPE\_SRC\_COMMAND\_TYPE](/fr-CA/reference/audio/shapesrccontext/enums/shape_src_command_type)

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

### Valeur de retour

Type : HRESULT

Code de réussite ou d'erreur HRESULT.

## 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 obtenir la commande SRC actuelle, utilisez [GetShapeSrcCommandType](/fr-CA/reference/audio/shapesrccontext/functions/getshapesrccommandtype).

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

- [SetShapeSrcCommand](/reference/audio/shapesrccontext/functions/shapesrccontext_setshapesrccommand.md)
- [SetShapeSrcCommand function](/reference/audio/shapeflowgraph/functions/shapeflowgraph_setshapesrccommand.md)
- [SetShapeSrcCommand 函数](/zh-CN/reference/audio/shapeflowgraph/functions/shapeflowgraph_setshapesrccommand.md)
- [Función SetShapeSrcCommand](/es/reference/audio/shapeflowgraph/functions/shapeflowgraph_setshapesrccommand.md)
