Closed paulbartrum closed 2 years ago
XAUDIO2_MAX_BUFFER_BYTES is defined to be 0x80000000 in C++, which is too large for a signed int. In Vortice it wraps around into the negatives, meaning code like if (myBufferSize >= XAudio2.MaxBufferBytes) will always be true.
if (myBufferSize >= XAudio2.MaxBufferBytes)
Thanks!
XAUDIO2_MAX_BUFFER_BYTES is defined to be 0x80000000 in C++, which is too large for a signed int. In Vortice it wraps around into the negatives, meaning code like
if (myBufferSize >= XAudio2.MaxBufferBytes)
will always be true.