> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# XDspDeactivate

> XDspDeactivate

# XDspDeactivate

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

## 構文

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

### パラメーター

*handle*   \_In\_\
型: [XDspStreamHandle](https://docs.xbox.com/ja-jp/reference/audio/xdspaudio/handles/xdspstreamhandle.md)

[XDspActivate](https://docs.xbox.com/ja-jp/reference/audio/xdspaudio/functions/xdspactivate.md) の呼び出しによって作成されたハンドル。

### 戻り値

型: HRESULT

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

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

## 解説

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

## 要件

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

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

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

## 概念ドキュメント

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

## 関連項目

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


## Related topics

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