Skip to content
This repository has been archived by the owner on Oct 4, 2024. It is now read-only.

engine/audio: fix resampling #10

Merged
merged 1 commit into from
Jul 19, 2024
Merged

engine/audio: fix resampling #10

merged 1 commit into from
Jul 19, 2024

Conversation

rr-
Copy link
Contributor

@rr- rr- commented Jul 19, 2024

Resolves LostArtefacts/TRX#1417.

The problem arises from using ffmpeg's swr component to resample the music, and then directing SDL to perform another resampling using its SDL_NewAudioStream API, effectively doubling the resampling factor.

Resolves TR1X#1417.
@rr- rr- requested review from a team, eikehein, lahm86 and walkawayy and removed request for a team July 19, 2024 18:50
@rr- rr- merged commit 63f44cd into main Jul 19, 2024
2 checks passed
@rr- rr- deleted the b1-1417-sound-sampling branch July 19, 2024 18:56
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.

TR1X bug: music files use the wrong sampling rate
3 participants