> ## 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](/zh-TW/reference/audio/xdspaudio/functions/xdspconnect) 期間配置的所有資源。

## 語法

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

### 參數

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

呼叫 [XDspConnect](/zh-TW/reference/audio/xdspaudio/functions/xdspconnect) 所建立的控制代碼。

### 傳回值

類型:HRESULT

如果成功,會傳回 S\_OK。如果方法失敗,會傳回下列其中一個代碼 (部分清單):

| 傳回碼 | 描述 |
| - | - |
| XDSP\_E\_NOT\_ALL\_HANDLES\_DEACTIVATED | 呼叫此函式之前,並非所有串流都已停用。 |

## 備註

呼叫此函式之前,必須成功停用所有 XDSP 串流。呼叫 [XDspDisconnect](/zh-TW/reference/audio/xdspaudio/functions/xdspdisconnect) 之後,即可釋放傳遞給 [XDspConnect](/zh-TW/reference/audio/xdspaudio/functions/xdspconnect) 的 *baseBuffer* 記憶體。

## 需求

**標頭:** XDspAudio.h

**程式庫:** Chad.lib

**支援的平台:** XBOX Series X|S

## 概念文件

* [使用 XDSP API 進行含 Envelope 的單一串流 Convolution 的概觀](/zh-TW/build/console-features/audio/overviews/xdsp-overview-single-stream-convolution-with-envelope)
* [使用 XDSP API 進行單一串流 Convolution 的概觀](/zh-TW/build/console-features/audio/overviews/xdsp-overview-single-stream-convolution)
* [XDSP 概觀](/zh-TW/build/console-features/audio/overviews/xdsp-overview)

## 另請參閱

[XDSP](/zh-TW/reference/audio/xdspaudio/xdspaudio_members)\
[XDspConnect](/zh-TW/reference/audio/xdspaudio/functions/xdspconnect)\
[XDSP 錯誤](/zh-TW/reference/audio/xdspaudio/enums/xdsperrors)\
[使用 XDSP API 進行單一串流 Convolution 的概觀](/zh-TW/build/console-features/audio/overviews/xdsp-overview-single-stream-convolution)\
[使用 XDSP API 進行單一串流 FFT/IFFT 的概觀](/zh-TW/build/console-features/audio/overviews/xdsp-overview-single-stream-fft-ifft)\
[使用 XDSP API 進行含 Envelope 的單一串流 Convolution 的概觀](/zh-TW/build/console-features/audio/overviews/xdsp-overview-single-stream-convolution-with-envelope)


## Related topics

- [XDspDisconnect](/reference/audio/xdspaudio/functions/xdspdisconnect.md)
- [XDspConnect](/reference/audio/xdspaudio/functions/xdspconnect.md)
- [Overview of a single stream Convolution using the XDSP API](/build/console-features/audio/overviews/xdsp-overview-single-stream-convolution.md)
- [Single-stream convolution with envelope using the XDSP API](/build/console-features/audio/overviews/xdsp-overview-single-stream-convolution-with-envelope.md)
- [Overview of a single stream FFT/IFFT using the XDSP API](/build/console-features/audio/overviews/xdsp-overview-single-stream-fft-ifft.md)
