OldUnreal / UnrealTournamentPatches

Other
1.04k stars 30 forks source link

Galaxy 3D audio driver - Can not change output rate to 96 kHz #1651

Open krzotr opened 1 month ago

krzotr commented 1 month ago

Tested on fresh Steam install of UT: GOTY + 469d patch. My sound card supports 24 bit/96 kHz

Issue: In Galaxy 3D audio preferences Output Rate changed to 8000Hz after selected 96 kHz

How to reproduce

  1. Go to Options -> Preferences -> Audio
  2. Make sure Audio Driver is Galaxy 3D
  3. Change Output Rate to 96 kHz (is automatically changed to 8000Hz (the same issue when changing to 192 kHz)

https://github.com/user-attachments/assets/1751f3dc-6fe9-436a-a048-a18b3c9ed839

With OpenAl 3D everything is fine, I can change to 96 kHz

SeriousBuggie commented 1 month ago

Galaxy is really old audio driver from 1999 year. I doubt if it can support above 48000 Hz at all. Also try look at game log. There can be appear reason, why it change to 8000 Hz instead,

main-exe commented 1 month ago

@krzotr Even if sound card supports high sample rate, there is no benefit in using anything above 44.1/48kHz for audio playback.

Games don't even use sounds with higher than 48kHz sample rate and there is a good reason for it. A lot of sounds need to be mixed while applying various filters, effects, reverb in real time. Mixing highly upsampled sounds could result in high CPU usage and audio issues.

Use OpenAL 3D driver. It supports 3D spatial audio. Can find instruction how to configure it here

krzotr commented 1 month ago

@SeriousBuggie

Also try look at game log. There can be appear reason, why it change to 8000 Hz instead

In the UnrealTournament.log file nothing interesting. I do not see any information about changing to 8000 Hz / 44.1/48 kHz

@main-exe I know, Galaxy 3D is an old audio driver. I use OpenAL 3D. I do not want to discuss use 44.1/48 instead of 96 kHz.

I just tried to change the output rate to 96 kHz in Galaxy 3D and saw an incorrect behavior (96 kHz automatically changed to 8000 Hz). This is the reason why I created an issue.

Calinou commented 2 weeks ago

The effect of this could likely be alleviated by falling back to 48000 Hz instead of 8000 Hz when the specified sample rate can't be used. (You probably wouldn't notice the fallback either way :slightly_smiling_face:)