Expand description

[docs.microsoft.com] APIs for XAudio2 style audio output

Modules

✔️ XAudio 2.9 - Windows 7 SP1+ via Redist, Windows 10+ via preinstall

Structs

Constants

Any/all processors (might spawn a thread per core, which might be an excessive number of threads…)

Used as an OperationSet argument

Not defined by xaudio2.h, but IXAudio2::CreateMasteringVoice default.

A hardcoded “default” processor (e.g. Processor1.)

"xaudio2_9.dll"

"xaudio2_9.dll"

"xaudio2_9.dll"

"xaudio2_9d.dll"

"xaudio2_9d.dll"

"xaudio2_9d.dll"

An audio device became unusable (unplugged, etc)

An API call or one of its arguments was illegal

XAudio2 failed to initialize an XAPO effect

The XMA hardware suffered an unrecoverable error

XAudio2 error codes

Not allowed for OperationSet arguments

Loop infinitely / forever.

Maximum channels in an audio stream

Maximum buffers allowed for system threads (Xbox 360 only)

Maximum bytes allowed in a source buffer

Maximum simultaneous XAudio2 objects on Xbox 360

Max finite loop count for a single submit (254).

Maximum buffers allowed in a voice queue

Maximum audio sample rate supported

Maximum acceptable volume level (2^24)

Minimum audio sample rate supported

No looping.

Processor/core no. 1

Processor/core no. 2

Processor/core no. 31

Processor/core no. 32

On Windows, XAudio2 processes audio in 10ms chunks (= 1/100 seconds)

Allow XAudio2 to choose the processor.

Traits

Functions

[microsoft.com] XAudio2Create: Creates a new IXAudio2 instance, which you can use to start using XAudio2.

Type Definitions

Used in XAudio2Create, specifies which CPU(s) to use.