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 stereo downmixing. #12

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open

Conversation

V10lator
Copy link

@V10lator V10lator commented May 6, 2020

Without this fix that happens:

======================== ASAN: out-of-bounds load
Source: 0x0D0254D8: homebrew_launcher|_ZN12SoundDecoder6DecodeEv
Bad load was on address 0x10CEE778. Guessing possible issues:
Guess     Chunk      ChunkSz    Dist       ChunkOwner
Overflow  0x10CEA760 0x00004000 0x00000018 homebrew_launcher|_ZN12BufferCircle6ResizeEi
Underflow 0x10CEE780 0x00004000 0xFFFFBFF8 homebrew_launcher|_ZN12BufferCircle6ResizeEi

With this fix playing a mono stream still produces clipping but without the fix it's completely garbled.

Without this fix that happens:

======================== ASAN: out-of-bounds load
Source: 0x0D0254D8: homebrew_launcher|_ZN12SoundDecoder6DecodeEv
Bad load was on address 0x10CEE778. Guessing possible issues:
Guess     Chunk      ChunkSz    Dist       ChunkOwner
Overflow  0x10CEA760 0x00004000 0x00000018 homebrew_launcher|_ZN12BufferCircle6ResizeEi
Underflow 0x10CEE780 0x00004000 0xFFFFBFF8 homebrew_launcher|_ZN12BufferCircle6ResizeEi

With this fix playing a mono stream still produces clipping but without the fix it's completely garbled.

Signed-off-by: Thomas Rohloff <[email protected]>
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.

1 participant