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

# XApuCommandType

> XApuCommandType

# XApuCommandType

Defines the command types that will be performed on a single stream.

## Syntax

```cpp theme={null}
enum class XApuCommandType  : uint32_t  
{  
    None = 0,  
    Activate = 1,  
    Deactivate = 2,  
    Process = 3,  
    Notify = 4,  
    Reset = 5,  
}  
```

## Constants

| Constant   | Description                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            |
| ---------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| None       | Invalid command type.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| Activate   | Activates and initializes a single stream for processing.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Deactivate | Deactivates and releases single stream resources.                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| Process    | Processes single stream input data to generate an output.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| Notify     | Not used                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               |
| Reset      | Resets a single stream decode and/or convert engines to its original activated state. This command will put the decoder and converter in their original state activation by using the same original activation parameters like channelCount and startPitch. It is up to the caller to use [XApuCommandType::Reset](/reference/audio/xapu/enums/xapucommandtype) or not during seeking, looping or splicing two streams, but when used the caller must submit preroll data to avoid the transient effect in the output. |

## Remarks

This enumeration determines activate and deactivate processes such as decode, convert, and decode-convert. It releases a process resource during deactivate. It sends a notification of its status of the current active processor. It also resets a process to its original activated state.

## Requirements

**Header:** xapu.h

**Supported platforms:** XBOX Series X|S

## See also

[XAPU](/reference/audio/xapu/xapu_members)\
[XApuCommandId](/reference/audio/xapu/structs/xapucommandid)\
[XApuDequeueResult](/reference/audio/xapu/functions/xapudequeueresult)\
[XApuEnqueueCommand](/reference/audio/xapu/functions/xapuenqueuecommand)


## Related topics

- [XApuEnqueueCommand](/reference/audio/xapu/functions/xapuenqueuecommand.md)
- [XApuCommandOptions](/reference/audio/xapu/enums/xapucommandoptions.md)
- [XApuUtilization](/reference/audio/xapu/structs/xapuutilization.md)
- [XApuDisconnect](/reference/audio/xapu/functions/xapudisconnect.md)
- [XApuCommandId](/reference/audio/xapu/structs/xapucommandid.md)
