We are currently migrating Bugzilla to GitHub issues.
Any changes made to the bug tracker now will be lost, so please do not post new bugs or make changes to them.
When we're done, all bug URLs will redirect to their equivalent location on the new bug tracker.

Bug 2969

Summary: Manual coding mistake in recompute_amp function
Product: SDL_mixer Reporter: Nitz <nitin.j4>
Component: miscAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: major    
Priority: P2    
Version: unspecified   
Hardware: x86   
OS: Linux   
Attachments: Patch

Description Nitz 2015-05-01 10:04:05 UTC
Created attachment 2143 [details]
Patch

In recompute_amp(int v) function:

under if condition:
if (note>0 && drumpanpot[chan][note]>=0) panning = drumvolume[chan][note];

This should be panning = drumpanpot[chan][note] instead of drumvolume.

Patch is attached.

Thanks!!!
Comment 1 Sam Lantinga 2015-05-03 02:25:27 UTC
Fixed, thanks!
https://hg.libsdl.org/SDL_mixer/rev/30ff0c742ac7