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 942

Summary: ALSA driver skips over most frames while "swizzling" channels
Product: SDL Reporter: Jānis Rūcis <parasti+libsdl>
Component: audioAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2    
Version: HG 2.0   
Hardware: All   
OS: Linux   
Attachments: Patch against SDL 1.2.14

Description Jānis Rūcis 2010-02-05 17:32:48 UTC
Created attachment 484 [details]
Patch against SDL 1.2.14

I tracked this down trying to find the cause for crackle in the rear speakers in Nexuiz (with a 6 channel configuration).  Looks like the same problem was described in [1].  Attached is a quick patch that seems to work for me; it simply assumes that the SDL nomenclature is confusing (i.e., says samples, means frames).

[1] http://article.gmane.org/gmane.comp.lib.sdl/44406
Comment 1 Jānis Rūcis 2010-02-11 11:11:31 UTC
BTW, while the patch probably doesn't apply to 1.3, the report does.
Comment 2 Ryan C. Gordon 2010-02-12 09:14:53 UTC
This patch is now svn revision #5550 for the 1.2 branch and #5551 for the 1.3 branch.

Thanks!

--ryan.