mirror of
https://github.com/jpochyla/psst.git
synced 2026-04-27 15:35:56 +03:00
[GH-ISSUE #449] Disconnecting output device halts playback permanently #281
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#281
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 @HookedBehemoth on GitHub (Jan 18, 2024).
Original GitHub issue: https://github.com/jpochyla/psst/issues/449
Describe the bug
I'm using bluetooth headphones which automatically turn off when placed back in their case. This halts playback entirely and only restarting the entire application fixes it.
Down below is an application log, stripped of absolute paths.
Maybe related: Switching the output device through the OS doesn't change it in psst.
To Reproduce
Expected behavior
Playback should be allowed to resume on the current primary output device or psst should offer an option to select a target device.
Screenshots
(No images provided as I don't see the reason here)
Environment
c70ace5Additional context
Log of the hang
@ll01 commented on GitHub (Mar 21, 2024):
I have a similar issue too.
@TheMargarineMan commented on GitHub (Apr 10, 2024):
This issue is replicated by disabling devices in windows sound settings. This issue seems to stem from how psst handles its audio devices, initializing a stream on the default device at start. To change this to handle switching between audio sources and disconnects may require a large amount of effort.
@sidit77 commented on GitHub (May 29, 2024):
Around a year ago, I created https://github.com/RustAudio/cpal/pull/754 to fix this issue, but it got no traction.
If anyone is interested in a quick fix for psst simply go to
psst-core/Cargo.tomland replacewith
@vvuk commented on GitHub (Sep 25, 2024):
Ah, this probably also affects things like SteelSeries Sonar that lets you do per-application routing. Trying to change the route for psst always results in "[...] did not allow Sonar to change the audio settings". Sounds like the issue is in
cpal.