@@ -1432,7 +1432,7 @@ FMOD_RESULT F_CALL process(FMOD_DSP_STATE* state,
14321432
14331433 iplDirectEffectApply (effect->directEffect , &directParams, &effect->inBuffer , &effect->directBuffer );
14341434
1435- bool directBinaural = numChannelsOut == 2 && effect->directBinaural ;
1435+ bool directBinaural = numChannelsOut == 2 && effect->directBinaural && ! gHRTFDisabled ;
14361436 if (directBinaural)
14371437 {
14381438 IPLBinauralEffectParams binauralParams{};
@@ -1494,7 +1494,7 @@ FMOD_RESULT F_CALL process(FMOD_DSP_STATE* state,
14941494 ambisonicsParams.order = gSimulationSettings .maxOrder ;
14951495 ambisonicsParams.hrtf = gHRTF [0 ];
14961496 ambisonicsParams.orientation = listenerCoordinates;
1497- ambisonicsParams.binaural = numChannelsOut == 2 && (effect->reflectionsBinaural ) ? IPL_TRUE : IPL_FALSE;
1497+ ambisonicsParams.binaural = numChannelsOut == 2 && ! gHRTFDisabled && (effect->reflectionsBinaural ) ? IPL_TRUE : IPL_FALSE;
14981498
14991499 iplAmbisonicsDecodeEffectApply (effect->ambisonicsEffect , &ambisonicsParams, &effect->reflectionsBuffer , &effect->reflectionsSpatializedBuffer );
15001500
@@ -1512,7 +1512,7 @@ FMOD_RESULT F_CALL process(FMOD_DSP_STATE* state,
15121512
15131513 IPLPathEffectParams pathParams = simulationOutputs.pathing ;
15141514 pathParams.order = gSimulationSettings .maxOrder ;
1515- pathParams.binaural = numChannelsOut == 2 && (effect->pathingBinaural ) ? IPL_TRUE : IPL_FALSE;
1515+ pathParams.binaural = numChannelsOut == 2 && ! gHRTFDisabled && (effect->pathingBinaural ) ? IPL_TRUE : IPL_FALSE;
15161516 pathParams.hrtf = gHRTF [0 ];
15171517 pathParams.listener = listenerCoordinates;
15181518
0 commit comments