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

# XDspDisconnect

> XDspDisconnect

# XDspDisconnect

ハードウェア サーバーから切断し、[XDspConnect](/reference/audio/xdspaudio/functions/xdspconnect) 中に割り当てられたすべてのリソースを解放します。

## 構文

```cpp theme={null}
HRESULT XDspDisconnect(  
         XDspClientHandle handle  
)  
```

### パラメーター

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

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

### 戻り値

型: HRESULT

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

| 戻りコード                                   | 説明                                    |
| --------------------------------------- | ------------------------------------- |
| XDSP\_E\_NOT\_ALL\_HANDLES\_DEACTIVATED | この関数を呼び出す前に、すべてのストリームが非アクティブ化されていません。 |

## 解説

この関数を呼び出す前に、すべての XDSP ストリームが正常に非アクティブ化されている必要があります。[XDspConnect](/reference/audio/xdspaudio/functions/xdspconnect) に渡された *baseBuffer* メモリは、[XDspDisconnect](/reference/audio/xdspaudio/functions/xdspdisconnect) を呼び出した後に解放できます。

## 要件

**ヘッダー:** 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)\
[XDspConnect](/reference/audio/xdspaudio/functions/xdspconnect)\
[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

- [XDspConnect](/ja-jp/reference/audio/xdspaudio/functions/xdspconnect.md)
- [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)
- [XDspConnectWithMaximumStreamLimit](/ja-jp/reference/audio/xdspaudio/functions/xdspconnectwithmaximumstreamlimit.md)
