XApuConnect
Establishes a connection and allocate the necessary resources for an Audio Processing Unit (XAPU).Syntax
Parameters
params _In_Type: XApuConnectInputParameters* Parameters passed to XApuConnect to allocated resources. data _Out_
Type: XApuConnectOutputParameters* Parameters returned by XApuConnect. handle _Outptr_
Type: XApuHandle* Pointer to an XAPU handle returned. This handle is used to indicate which XAPU instance to manipulate when calling other XAPU APIs.
Return value
Type: HRESULT Returns S_OK if successful; otherwise, returns an error code.Remarks
The caller must specify an XApuProcessType for the XAPU client to perform. An instance of an XAPU can work with one type of process during its lifetime. To perform two or more different processes, two or more XAPU instances must be instantiated. Inside the XApuConnectInputParameters, the caller must specify the following:- Maximum number of streams the XAPU is expected to process simultaneously.
- Maximum number of queued commands for each stream.
- Total required memory allocation for all commands and streams. This includes total allocations for input, output and processing data across the maximum number of streams times queued commands per stream.
Requirements
Header: xapu.h Library: xapu.lib Supported platforms: XBOX Series X|SConceptual documentation
See also
XAPUXApuDecodeConvertCommand
XApuDequeueResult
XApuEnqueueCommand
XApuGetResultCount
