ryzom / ryzomcore

Ryzom Core is the open-source project related to the Ryzom game. This community repository is synchronized with the Ryzom Forge repository, based on the Core branch.
https://wiki.ryzom.dev
GNU Affero General Public License v3.0
330 stars 89 forks source link

Environment room size does not work the same under different sound drivers #377

Open ryzom-pipeline opened 15 years ago

ryzom-pipeline commented 15 years ago

Room size is a higher-level variable that basically adjusts the environment settings. Write code to adjust the environment reverb settings manually from the room size parameter, instead of letting the sound api do this.

Original creation date in redmine: 2008/11/03 17:04:52 +0100 by kaetemi at https://dev.ryzom.com/issues/168

kaetemi commented 1 year ago

Reference materials on legacy EAX reverb environments:

Effectively, Ryzom just sets the legacy environment ID, and then the environment/room size, which modifies all the preset parameters of the environment. We can use either the known preset values directly, or the environment ID on targets that don't have access to the values directly. (Maybe add a flag as well to our built-in presets to indicate if they're using the original preset values.)

Note that room size in EAX and OpenAL is in meters, in XAudio2 it's in feet for some reason.