Fix 3D audio placement for XAudio2 and OpenAL

Corrected inverted x-axis for XAudio2
Corrected inverted z-axis for OpenAL
This commit is contained in:
Tayler Mauk
2021-04-12 22:06:01 -07:00
parent 3a03fe5f7f
commit a7e29c5784
2 changed files with 2 additions and 2 deletions

View File

@@ -26,7 +26,7 @@
#define MAX_OUTPUT_CHANNELS 8
#define MAX_CHANNELS_MATRIX_SIZE (MAX_INPUT_CHANNELS*MAX_OUTPUT_CHANNELS)
#define FLAX_POS_TO_XAUDIO(vec) X3DAUDIO_VECTOR(-vec.X * 0.01f, vec.Y * 0.01f, vec.Z * 0.01f)
#define FLAX_POS_TO_XAUDIO(vec) X3DAUDIO_VECTOR(vec.X * 0.01f, vec.Y * 0.01f, vec.Z * 0.01f)
#define FLAX_VEC_TO_XAUDIO(vec) (*((X3DAUDIO_VECTOR*)&vec))
namespace XAudio2