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

単一のストリームに対して実行されるコマンド種別を定義します。

## 構文

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

## 定数

| 定数         | 説明                                                                                                                                                                                                                                                                                                      |
| ---------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| None       | 無効なコマンド種別です。                                                                                                                                                                                                                                                                                            |
| Activate   | 処理のために単一のストリームを有効化し初期化します。                                                                                                                                                                                                                                                                              |
| Deactivate | 単一ストリームのリソースを無効化して解放します。                                                                                                                                                                                                                                                                                |
| Process    | 単一ストリームの入力データを処理して出力を生成します。                                                                                                                                                                                                                                                                             |
| Notify     | 使用されません。                                                                                                                                                                                                                                                                                                |
| Reset      | 単一ストリームのデコードおよび/または変換エンジンを、有効化直後の元の状態にリセットします。このコマンドは、channelCount や startPitch などの元の有効化パラメーターを使用して、デコーダーとコンバーターを元の有効化状態に戻します。シーク、ループ、または 2 つのストリームの接続時に [XApuCommandType::Reset](/reference/audio/xapu/enums/xapucommandtype) を使用するかどうかは呼び出し側に委ねられていますが、使用する場合は、出力の過渡的な影響を避けるためにプリロール データを送信する必要があります。 |

## 解説

この列挙型は、デコード、変換、デコード変換などのプロセスの有効化と無効化を決定します。無効化中にプロセス リソースを解放します。現在アクティブなプロセッサーの状態を通知します。また、プロセスを元の有効化状態にリセットします。

## 要件

**ヘッダー:** xapu.h

**サポートされているプラットフォーム:** XBOX Series X|S

## 関連項目

[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](/ja-jp/reference/audio/xapu/functions/xapuenqueuecommand.md)
- [XApuUtilization](/ja-jp/reference/audio/xapu/structs/xapuutilization.md)
- [XApuCommandOptions](/ja-jp/reference/audio/xapu/enums/xapucommandoptions.md)
- [XApuCommandId](/ja-jp/reference/audio/xapu/structs/xapucommandid.md)
- [XApuDisconnect](/ja-jp/reference/audio/xapu/functions/xapudisconnect.md)
