Skip to content

ALSA (on pipewire): continuous xruns on 0.17.3 and 0.18.1 #1250

Description

@SludgePhD

I'm seeing a continuous stream of xrun errors after updating from cpal 0.16 to 0.18 (and that also show up on 0.17).

These only seem to appear when requesting a non-standard sample rate (44100 instead of the native 48000), and when the requested buffer size is below 1024 (the default picked by cpal is 512). They also seem to appear at the native sampling rate, when the buffer size is not a power of two (a size of 900 starts causing them, while a size of 512 is completely fine).

These xruns do not show up in pw-top or the pipewire logs, but there is audible distortion. However, given that they persist even with a trivial data callback (data.fill(0.0)), and with --release, they cannot be caused by the callback taking too long.

These issues immediately stop appearing completely, no matter the requested stream settings, when the pipewire backend is enabled.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions