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 5207

Summary: sndio bug fixes for 1.2 branch
Product: SDL Reporter: Brad Smith <brad>
Component: audioAssignee: Ryan C. Gordon <icculus>
Status: RESOLVED FIXED QA Contact: Sam Lantinga <slouken>
Severity: normal    
Priority: P2 CC: sezeroz
Version: HG 1.2   
Hardware: All   
OS: OpenBSD   
Attachments: sndio bug fixes

Description Brad Smith 2020-06-20 23:07:15 UTC
Created attachment 4390 [details]
sndio bug fixes

I see the 1.2 branch is still going. We have a few local patches for OpenBSD.

Attached is a patch with a few fixes for the sndio backend.

- use SIO_DEVANY instead of NULL
- simplify SNDIO_WaitAudio (do as others backends do)
- remove the rate negotiation, which predates sndiod
Comment 1 Ozkan Sezer 2020-06-24 09:21:10 UTC
The patch is in: https://hg.libsdl.org/SDL/rev/d3f74efa82e7
Thanks.