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

# XApuCommandId

> XApuCommandId

# XApuCommandId

XAPU に送信し、XAPU から受信する基本コマンド パラメーターを定義します。その他のすべてのコマンドは、この型を拡張したものです。

## 構文

```cpp theme={null}
typedef struct XApuCommandId {  
    XApuCommandType type;  
    uint32_t streamIndex;  
    uint32_t sequence;  
    XApuCommandOptions options;  
    void* context;  
} XApuCommandId  
```

### メンバー

*type*\
型: [XApuCommandType](/reference/audio/xapu/enums/xapucommandtype)

このコマンド内の関連データをハードウェアがどのように処理するかを指示するコマンド種別。

*streamIndex*\
型: uint32\_t

ストリームのインデックス。値は 0 から [XApuConnectInputParameters::maxStreamCount](/reference/audio/xapu/structs/xapuconnectinputparameters) - 1 の範囲である必要があります。すべてのストリームは一意のインデックス値を持つ必要があり、この値を割り当てるのは呼び出し側の責任です。

*sequence*\
型: uint32\_t

この値は XAPU では変更されず、使用方法は呼び出し側に委ねられます。結果キューから出力されるパケットを追跡するために時間とともに増加するコマンド シーケンス番号として使用できます。XAPU はこのシーケンス番号に従ってパケットの順序を並べ替えることはなく、この番号が減少したり前の値との間に欠落があってもエラーを返しません。

*options*\
型: [XApuCommandOptions](/reference/audio/xapu/enums/xapucommandoptions)

コマンド オプション。一部のオプションは [XApuCommandOptions::SignalOnCompletion](/reference/audio/xapu/enums/xapucommandoptions) のようにすべてのコマンド種別に適用できます。それ以外は [XApuCommandOptions::Flush](/reference/audio/xapu/enums/xapucommandoptions) や [XApuCommandOptions::Decoder](/reference/audio/xapu/enums/xapucommandoptions) のように特定のコマンド種別に対して機能します。

*context*\
型: void\*

XAPU がエンキュー コマンド段階からデキュー結果段階まで、そのまま内部で受け渡すユーザー データのためのオプションのプレース ホルダーです。呼び出し側はタイムスタンプなど、64 ビット符号なし値に収まる任意のデータを自由に渡すことができます。

## 解説

[XApuCommandId](/reference/audio/xapu/structs/xapucommandid) は、XAPU に送信され、XAPU から受信される基本コマンド パラメーターを定義するために使用されます。その他のすべてのコマンドは、この型を拡張したものです。デコード変換のアクティブ化処理パラメーターの詳細については、[XApuDecodeConvertActivateCommand](/reference/audio/xapu/structs/xapudecodeconvertactivatecommand) と [XApuDecodeConvertCommand](/reference/audio/xapu/structs/xapudecodeconvertcommand) を参照してください。XAPU 入力キューにコマンドを送信する方法については、[XApuEnqueueCommand](/reference/audio/xapu/functions/xapuenqueuecommand) を参照してください。

## 要件

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

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

## 関連項目

[XApuDequeueResult](/reference/audio/xapu/functions/xapudequeueresult)\
[XApuResult](/reference/audio/xapu/structs/xapuresult)\
[XAPU](/reference/audio/xapu/xapu_members)


## Related topics

- [XApuCommandType](/ja-jp/reference/audio/xapu/enums/xapucommandtype.md)
- [XApuCommandOptions](/ja-jp/reference/audio/xapu/enums/xapucommandoptions.md)
- [XApuDecodeConvertActivateCommand](/ja-jp/reference/audio/xapu/structs/xapudecodeconvertactivatecommand.md)
- [XApuEnqueueCommand](/ja-jp/reference/audio/xapu/functions/xapuenqueuecommand.md)
- [XApuConnectInputParameters](/ja-jp/reference/audio/xapu/structs/xapuconnectinputparameters.md)
