Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix 399: Game does not obey sound effects volume level set in sound settings. #400

Merged
merged 1 commit into from
Jul 26, 2024

Conversation

b-kurczynski
Copy link
Contributor

@b-kurczynski b-kurczynski commented Jul 21, 2024

Incorporated the following changes:

  1. Moved calls to S3SyncSampleVolumeAndPan() and S3SyncSampleRate() to follow call to AudioBackend_PlaySample(). This is required because the later one initializes the object on which S3Sync...() functions operate.
  2. Removed a call to ma_volume_db_to_linear() as it expects input volume to be in exponential scale where volume_db is in linear scale. The call has been replaced with explicit transformation using reverse formula of the one found in S3SyncSampleVolumeAndPan() function.

Fixes #399

src/S3/s3sound.c Outdated Show resolved Hide resolved
…Spatial sound is either too loud or to quiet.
@dethrace-labs dethrace-labs merged commit 90971e9 into dethrace-labs:main Jul 26, 2024
6 checks passed
@b-kurczynski b-kurczynski deleted the fix-399 branch November 24, 2024 18:53
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.

Game does not obey sound effects volume level set in sound settings.
3 participants