Skip to content

aplay: Weird delay millisecs shown when overrun/underrun occurs without -v #298

Open

Description

@kabe-gh

[root@cygnus ~]# aplay -D pipewire a.wav
Playing WAVE 'a.wav' : Signed 16 bit Little Endian, Rate 44100 Hz, Stereo
underrun!!! (at least 1746767081231.829 ms long)
underrun!!! (at least 1746767081072.539 ms long)
underrun!!! (at least 1746767081112.852 ms long)
underrun!!! (at least 1746767081097.655 ms long)
underrun!!! (at least 1746767081099.998 ms long)
underrun!!! (at least 1746767081083.744 ms long)
underrun!!! (at least 1746767081100.482 ms long)
underrun!!! (at least 1746767081219.076 ms long)
underrun!!! (at least 1746767081111.242 ms long)
underrun!!! (at least 1746767081071.547 ms long)

With -v, the delay display is sane.
This seems that some initialization of alsa-lib is only done when -v is added.
The attached patch fixes this, but was it had a reason to not initialize without -v ?

patch-overrun-diag-monotonic.patch

Activity

  1. perexg commented on May 11, 2025

    @perexg
    Member

    This problem should be reported for pipewire plugin code. The trigger timestamps MUST be updated ALWAYS (they do not depend on the setup for timestamps for the hw_ptr updates - snd_pcm_sw_params_set_tstamp_mode).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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