Fix horizontal rotation bug in Oculus spatializer

This commit is contained in:
mcc 2021-07-23 17:50:46 -04:00 committed by Bjorn
parent db28be591a
commit 9f96917d91
1 changed files with 2 additions and 1 deletions

View File

@ -245,8 +245,9 @@ static uint32_t oculus_tail(float* scratch, float* output, uint32_t frames) {
// Oculus math primitives
// Note: Mirror on YZ plane. There appears to be some difference between Lovr and Oculus Audio quaternions.
static void oculusUnpackQuat(ovrQuatf* oq, float* lq) {
oq->x = lq[0]; oq->y = lq[1]; oq->z = lq[2]; oq->w = lq[3];
oq->x = lq[0]; oq->y = lq[1]; oq->z = -lq[2]; oq->w = -lq[3];
}
static void oculusUnpackVec(ovrVector3f* ov, float* p) {