Skip to content

fix(audio): sound volume initialization & MiniAudio doc updates#171

Merged
fbraz3 merged 2 commits into
mainfrom
fix/sound-volume-issue-163
Jun 19, 2026
Merged

fix(audio): sound volume initialization & MiniAudio doc updates#171
fbraz3 merged 2 commits into
mainfrom
fix/sound-volume-issue-163

Conversation

@fbraz3

@fbraz3 fbraz3 commented Jun 19, 2026

Copy link
Copy Markdown
Owner

Description

Fixes #163

This PR resolves the issue where sound, music, and speech volume options were ignored on playback/loop initialization under both the OpenAL and MiniAudio backends. It also updates project documentation to align with MiniAudio being the standard default audio backend.

Changes

Audio Code Fixes

  • OpenAL Backend (OpenALAudioManager.cpp): Initializes AL_GAIN by calling adjustPlayingVolume right before starting source playback in playSample, playSample3D, and playStream.
  • MiniAudio Backend (MiniAudioManager.cpp): Replaces manual/partial volume settings in playAudioEvent and startNextLoop with unified calls to adjustPlayingVolume, ensuring both category levels and volumeShift pitch/volume variations are applied consistently right at start.

Documentation Updates

  • Replaced references to OpenAL with MiniAudio across root and .github/ markdown instruction files to reflect MiniAudio as the standard audio backend.

fbraz3 added 2 commits June 19, 2026 17:48
Set initial gain/volume for both OpenAL and MiniAudio managers on
sound/stream creation and looping to prevent audio from defaulting
to maximum volume.

Fixes #163
Replace references to OpenAL with MiniAudio across project instructions,
agent descriptions, and prompts to correctly reflect MiniAudio as the
standard/default audio system for GeneralsX.
@fbraz3 fbraz3 merged commit fd1311d into main Jun 19, 2026
8 checks passed
@fbraz3 fbraz3 deleted the fix/sound-volume-issue-163 branch June 19, 2026 21:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sound volume issues

1 participant