Skip to content

Fixes crashes on asan related to audio. #4049

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

Merged
merged 1 commit into from
Jul 17, 2024

Conversation

Kenix3
Copy link
Collaborator

@Kenix3 Kenix3 commented Apr 11, 2024

Found in MM

The issue is actually in the caller function, and it's believed to exist on the original game. Basically the caller doesn't correctly stop loading the sample using aLoadBuffer correctly. It tries to copy a set number of frames, but the issue is that the samples don't always have that much data.
The mixer func shouldn't be modified imo
The exporter should generate padded samples that have enough data to account for alignment.
Modifying just the mixer is more brittle because there may be other code affected by alignment issues.
The calling func is just not calculating sample positions correctly, and the samples aren't aligned.

Build Artifacts

@briaguya-ai
Copy link
Contributor

briaguya-ai commented Apr 20, 2024

actually should this go to macready?

edit: i went ahead and rebased it onto macready

@briaguya-ai briaguya-ai changed the base branch from develop to develop-macready April 20, 2024 17:44
@Archez Archez merged commit 134aba4 into HarbourMasters:develop-macready Jul 17, 2024
8 checks passed
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.

4 participants