XAudio2Create

XAudio2Create: Top-level function that creates an XAudio2 instance.

On Windows this is just an inline function that calls CoCreateInstance and Initialize. The arguments are described above, under Initialize, except that the XAUDIO2_DEBUG_ENGINE flag can be used here to select the debug version of XAudio2.

On Xbox, this function is implemented in the XAudio2 library, and the XAUDIO2_DEBUG_ENGINE flag has no effect; the client must explicitly link with the debug version of the library to obtain debug behavior.

  1. STDAPI XAudio2Create(IXAudio2* ppXAudio2, UINT32 Flags, XAUDIO2_PROCESSOR XAudio2Processor)
    version(Windows && !GUID_DEFS_ONLY && XBOX)
    STDAPI
    XAudio2Create
    (,,
    XAUDIO2_PROCESSOR XAudio2Processor = XAUDIO2_DEFAULT_PROCESSOR
    )
  2. HRESULT XAudio2Create(IXAudio2 ppXAudio2, UINT32 Flags, XAUDIO2_PROCESSOR XAudio2Processor)
  3. HRESULT XAudio2Create(IXAudio2 ppXAudio2, UINT32 Flags, XAUDIO2_PROCESSOR XAudio2Processor)

Meta