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

# XDspDeactivate

> XDspDeactivate

# XDspDeactivate

ストリームを非アクティブ化し、[XDspActivate](/reference/audio/xdspaudio/functions/xdspactivate) で取得された処理リソースをプールに返します。

## 構文

```cpp theme={null}
HRESULT XDspDeactivate(  
         XDspStreamHandle handle  
)  
```

### パラメーター

*handle*   \_In\_\
型: [XDspStreamHandle](/reference/audio/xdspaudio/handles/xdspstreamhandle)

[XDspActivate](/reference/audio/xdspaudio/functions/xdspactivate) の呼び出しによって作成されたハンドル。

### 戻り値

型: HRESULT

成功した場合は S\_OK を返します。失敗した場合は次のコードのいずれかを返します (一部の一覧):

| 戻りコード                     | 説明                                                                                                                |
| ------------------------- | ----------------------------------------------------------------------------------------------------------------- |
| XDSP\_E\_PENDING\_RESULTS | 送信されたすべてのコマンドの結果を受信する前に XDspStream が非アクティブ化されました。ストリームを非アクティブ化する前に、ハードウェアがストリームの送信されたコマンドの処理を完了するのに十分な時間待機してください。 |

## 解説

送信されたすべてのコマンドが処理されていない場合、この呼び出しは失敗します。

## 要件

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

**ライブラリ:** Chad.lib

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

## 概念ドキュメント

* [XDSP API を使用したエンベロープ付き単一ストリーム畳み込みの概要](/build/console-features/audio/overviews/xdsp-overview-single-stream-convolution-with-envelope)
* [XDSP API を使用した単一ストリーム畳み込みの概要](/build/console-features/audio/overviews/xdsp-overview-single-stream-convolution)
* [XDSP の概要](/build/console-features/audio/overviews/xdsp-overview)

## 関連項目

[XDSP](/reference/audio/xdspaudio/xdspaudio_members)\
[XDspActivate](/reference/audio/xdspaudio/functions/xdspactivate)\
[XDSP エラー](/reference/audio/xdspaudio/enums/xdsperrors)\
[XDSP API を使用した単一ストリーム畳み込みの概要](/build/console-features/audio/overviews/xdsp-overview-single-stream-convolution)\
[XDSP API を使用した単一ストリーム FFT/IFFT の概要](/build/console-features/audio/overviews/xdsp-overview-single-stream-fft-ifft)\
[XDSP API を使用したエンベロープ付き単一ストリーム畳み込みの概要](/build/console-features/audio/overviews/xdsp-overview-single-stream-convolution-with-envelope)


## Related topics

- [XDSP の概要](/ja-jp/build/console-features/audio/overviews/xdsp-overview.md)
- [XDSP API を使用したシングル ストリーム コンボリューションの概要](/ja-jp/build/console-features/audio/overviews/xdsp-overview-single-stream-convolution.md)
- [XDSP API を使用したエンベロープ付きシングル ストリーム コンボリューション](/ja-jp/build/console-features/audio/overviews/xdsp-overview-single-stream-convolution-with-envelope.md)
- [XDSP API を使用したシングル ストリーム FFT/IFFT の概要](/ja-jp/build/console-features/audio/overviews/xdsp-overview-single-stream-fft-ifft.md)
- [XDspSubmitCommand](/ja-jp/reference/audio/xdspaudio/functions/xdspsubmitcommand.md)
