ValveSoftware / steam-audio

Steam Audio
https://valvesoftware.github.io/steam-audio/
Apache License 2.0
2.2k stars 152 forks source link

Feature/fix stereo headphone disambiguation #356

Open Schroedingers-Cat opened 1 month ago

Schroedingers-Cat commented 1 month ago

This PR adds a global HRTF option to Steam Audio that allows to disable HRTF rendering for all Steam Audio instances. This solves the problem of FMOD and Unity not differentiating between stereo on speakers (don't use HRTFs) vs stereo on headphones (prefer HRTFs). Game programmers can use the global HRTF option for instance in their game's option menu or automatically set this depending on the presence of a digital headphone or speaker set.

The default value of this new setting is backwards compatible meaning projects using an older Steam Audio version upgrading to a version with these changes will behave as before.

This was originally part of PR #329 but has been moved into a dedicated PR.

Schroedingers-Cat commented 1 month ago

@lakulish your feedback is welcome!

Also, should we merge this, do we also want to change the documentation accordingly?

Schroedingers-Cat commented 2 weeks ago

@lakulish any feedback in this MR?