Skip to content
This repository was archived by the owner on Jun 28, 2026. It is now read-only.

Expose OpenAL doppler factor#140

Open
metalgearsloth wants to merge 2 commits into
Space-Wizards-Federation:masterfrom
metalgearsloth:2026-06-22-doppler
Open

Expose OpenAL doppler factor#140
metalgearsloth wants to merge 2 commits into
Space-Wizards-Federation:masterfrom
metalgearsloth:2026-06-22-doppler

Conversation

@metalgearsloth

Copy link
Copy Markdown
Contributor

Title.

@FairlySadPanda

Copy link
Copy Markdown
Contributor

Is it worth exposing speed-of-sound if we have it in our bindings? See: https://www.openal.org/documentation/OpenAL_Programmers_Guide.pdf, bottom of page 14 and page 15.

@metalgearsloth

Copy link
Copy Markdown
Contributor Author

Is it worth exposing speed-of-sound if we have it in our bindings?

There's a lot of stuff still to be implemented from openAL, yeah.

Comment thread Robust.Shared/CVars.cs
Comment on lines +1306 to +1307
public static readonly CVarDef<float> AudioDopplerFactor =
CVarDef.Create("audio.doppler_factor", 1f, CVar.SERVER | CVar.REPLICATED);

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it worth making this a SERVER CVar? With master gain, RMC had to do some workarounds to make a deafness effect work since it's set in many places
Granted I don't really see an usecase in setting this in code or per-client, but still

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can make it client and add a setter.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants