| Summary: | On iOS, audio skips when suspending and resuming | ||
|---|---|---|---|
| Product: | SDL | Reporter: | philhassey <phil> |
| Component: | audio | Assignee: | Ryan C. Gordon <icculus> |
| Status: | RESOLVED FIXED | QA Contact: | Sam Lantinga <slouken> |
| Severity: | normal | ||
| Priority: | P2 | CC: | phil |
| Version: | 2.0.8 | ||
| Hardware: | iPhone/iPod touch | ||
| OS: | iOS 11 | ||
| Attachments: | audio thread priority patch | ||
The iOS audio code has been changed, can you check the latest version and see if the issue still happens, and if so, can you provide an updated patch? http://www.libsdl.org/tmp/SDL-2.0.zip Thanks! The coreaudio code contained in SDL-2.0.8-11956 appears to resolve the issue. Thanks! You're welcome! Just backed out the code that solved this previously, so this commit should _also_ fix this for 2.0.10, if you find yourself in a position to verify the latest in revision control: https://hg.libsdl.org/SDL/rev/a7b99312d9f3 --ryan. |
Created attachment 3236 [details] audio thread priority patch I've noticed that the audio skips really badly during suspending and resuming on iOS. Sometimes it skips other times as well. This issue is new to versions of SDL2 that use core audio. I'm using these settings: want.freq = 44100; want.format = AUDIO_F32SYS; want.channels = 2; want.samples = 1024; I've attached a patch that sets the audio thread priority to HIGH which largely resolves the issue.