XDspActivate
Activate XDSP stream by acquiring a free processing resource from the pool. Each XDSP client is limited to 256 stream activations.Syntax
Parameters
clientHandle _In_Type: XDspClientHandle A valid XDSP client handle obtained from the call to XDspConnect. params _In_
Type: XDspActivationParameters* Pointer to an XDspActivationParameters structure. status _Outptr_
Type: XDspStatus** Pointer to an XDspStatus structure. See the Remarks section for additional details. streamHandle _Outptr_
Type: XDspStreamHandle* Valid XDspStreamHandle, if the call succeeds. See the Remarks section for additional details.
Return value
Type: HRESULT If the method succeeds, it returns S_OK. If the method fails, it returns one of the following codes (partial list):Remarks
This call is quick as it acquires resources from the pool instead of allocating them. The caller must specify an XDspProcessType for the XDSP stream to perform. An instance of XDSP stream can work with one processing type only during its lifetime. To perform two or more different processing types, two or more XDSP stream instances must be instantiated. Inside the XDspActivationParameters structure, the caller must specify the following:- Activation options.
- Number of frames that will be processed in each command, i.e. the input and output number of frames.
- Number of channels of the stream. Only mono and stereo input streams are supported.
- For XDspProcessType::Convolution processing type, the length of the impulse response in floats.
- For XDspProcessType::Convolution processing type, the impulse response as frequency domain values.
Requirements
Header: XDspAudio.h Library: Chad.lib Supported platforms: XBOX Series X|SConceptual documentation
- Overview of a single stream Convolution with Envelope using the XDSP API
- Overview of a single stream Convolution using the XDSP API
- XDSP overview
See also
XDSPXDSP Errors
Overview of a single stream Convolution using the XDSP API
Overview of a single stream FFT/IFFT using the XDSP API
Overview of a single stream Convolution with Envelope using the XDSP API
