Skip to content
This repository was archived by the owner on Mar 2, 2025. It is now read-only.
This repository was archived by the owner on Mar 2, 2025. It is now read-only.

SDL Audio driver is unstable and potentially hangs or crashes #26

@JayFoxRox

Description

@JayFoxRox

Before merging the SDL audio support, we have known about potential issues in the SDL audio portion:

The exact behavior seems to depend on different factors like chosen playback rate / SDL audio format.
We'll have to stress-test, review and debug the code.

It's also possible that the issues are unrelated to the audio driver - we have not been able to confirm anything specifically. We just had independent reports of crashes in applications using SDL audio.
Any underlying subsystem (SDL logic or xaudio for example) could be responsible.

Unfortunately the SDL audio subsystem has competing backend design philosophies, so it's complicated and hard to compare to other drivers (and there's no good reference driver within SDL itself either). Debugging this might take a while.

I also have to recommend against testing in XQEMU because the QEMU AC97 implementation might cause additional timing or interrupt injection issues.

As a workaround you will have to disable all SDL audio (including SDL mixer) in your application; if you don't do this, there could be potential crashes due to SDL audio.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions