mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 15:35:56 +03:00
[GH-ISSUE #138] Lack of sound output using Pipewire (fedora 34) #99
Labels
No labels
api
bug
build
documentation
duplicate
enhancement
good first issue
help wanted
idea
invalid
linux
lowprio
macos
pull-request
upstream
windows
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/psst#99
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @cttipton on GitHub (Aug 23, 2021).
Original GitHub issue: https://github.com/jpochyla/psst/issues/138
Initially I built in an Ubuntu 20.04 VM on my fedora workstation, gave the VM access to my sound card via virt-manager, works like a charm. On my actual machine using fedora 34 with pipewire (including pipewire-alsa module, pipewire-pulse service), I don't have any playback from the application--audio playback elsewhere the issue isn't observed.
I'll continue interrogating the alsa api -> pipewire routing and my configuration, but if any others are using pipewire (or can test it) contrary reports would be helpful in narrowing the scope of investigation.
There's nothing notable in the runtime logs which differentiates the two cases
[2021-08-23T05:16:58Z INFO psst_core::access_token] access token expired, requesting
[2021-08-23T05:17:01Z INFO psst_core::access_token] access token expired, requesting
[2021-08-23T05:17:01Z INFO psst_core::audio_file] blocked at 10295584
[2021-08-23T05:17:01Z INFO psst_core::audio_file] blocked at 10354686
[2021-08-23T05:17:01Z INFO psst_core::audio_file] blocked at 10357428
[2021-08-23T05:17:01Z INFO psst_core::audio_player] starting playback
[2021-08-23T05:17:01Z INFO psst_gui::controller::playback] playing
[2021-08-23T05:17:04Z INFO psst_core::audio_file] blocked at 2644028
[2021-08-23T05:17:04Z INFO psst_core::audio_file] blocked at 2665709
[2021-08-23T05:17:04Z INFO psst_core::audio_file] blocked at 2682093
[2021-08-23T05:17:04Z INFO psst_core::audio_file] blocked at 2698477
[2021-08-23T05:17:04Z INFO psst_core::audio_file] blocked at 2722297
[2021-08-23T05:17:37Z INFO psst_core::audio_player] pausing playback
I will test enabling and forcing pipewire in my VM and report back.
@mforsb commented on GitHub (Aug 23, 2021):
I'm also on fedora 34 with pipewire 0.3.33 and am having a similar issue. Sometimes when playing a track psst does not play any sound, but I can see the volume bar moving in
pavucontrol. Pausing and playing fixes it.When it works there is also some occasional crackling, especially when doing something cpu-intensive like compiling. This is also present (although much less noticeable) in this
miniaudio-rsexample (I changed it to play song instead). The crackling is accompanied by these messages injournald:None of these issues appear with psst on pulseaudio, or with any other program on pipewire.
@cttipton commented on GitHub (Aug 24, 2021):
My initial issue (lack of playback) appears to have been a problem with my pipewire setup. Running defaults brought me to observe the same as @mforsb. However, at least for the crackling/skipping I believe this to be a current pipewire flaw, as noted in https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/494 as well as this issue which also references use of miniaudio.
@jacksongoode commented on GitHub (Sep 1, 2021):
@cttipton @mforsb did you find any current workaround for playback? I tried starting with
pw-jackto no avail.@mforsb commented on GitHub (Sep 1, 2021):
Unfortunately no. But if you're able to build from source I have been trying out this
cpalbased branch by @H-M-H for about an hour without any issues.@jacksongoode commented on GitHub (Sep 1, 2021):
Did you start psst with any flags or build it with any flags? I build it and it seems to exhibit the same behavior :(
@H-M-H commented on GitHub (Sep 1, 2021):
Did you build the
cpalbranch?@jacksongoode commented on GitHub (Sep 1, 2021):
I was running the wrong
psst-guifrom cargo 😆. It works well! I've brought it to the attention of the dev as well.