mirror of
https://github.com/aome510/spotify-player.git
synced 2026-04-26 09:25:49 +03:00
[GH-ISSUE #320] Music Continues to Go Through The Speakers Despite Despite The Presence of Bluetooth Headphones #1104
Labels
No labels
bug
documentation
enhancement
good first issue
help wanted
pull-request
question
third-party
third-party
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/spotify-player#1104
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 @nathan-2006 on GitHub (Dec 17, 2023).
Original GitHub issue: https://github.com/aome510/spotify-player/issues/320
Describe the bug
Audio does not go through Bluetooth headphones despite it being the default audio device and all other sounds playing through the Bluetooth device. The "RestartIntegratedClient" and "RefreshPlayback" tools do not resolve the problem. This was tested with Spotify_Player being built with the 'rodio-backend' and 'alsa-backend' on 0.16.1 and 'rodio-backend' on 0.16.2
To Reproduce
Pair a Bluetooth device, launch Spotify_Player, and try playing a song.
Expected behavior
Audio successfully playing through the paired Bluetooth deveice.
Log and backtrace
Reference log and backtrace, which are usually located in
$HOME/.cache/spotify-player/, of a run reproducing the bug.The backtrace log is empty with first try on 0.16.1 but on 0.16.2 with trying to get it to work did I get a "No playback devices" error with trying "RestartIntegratedClient" and "RefreshPlayback" once or a few times. That produced a proper backtrace log:
Environment
spotify_playerDefault settings apart from the one instance from when the backend being changed to 'alsa-backend' in which the application was built with '--no-default-features --features alsa-backend'
Additional context
It's highly unlikely that this is something that relates to my device's architecture, but the device Spotify_Player is being used on is an ARMv7h device. I also used Clang as the compiler.
@aome510 commented on GitHub (Dec 20, 2023):
This is the first time I have seen this kind of error. A brief search leads me to https://github.com/RustAudio/rodio/issues/267. Can you try to install
pulseaudio-alsato see if it fixes the issue?@nathan-2006 commented on GitHub (Dec 20, 2023):
Whoops! I should've mentioned that semi-recently did Ubuntu drop PulseAudio in favor of PipeWire. My system has both
pipewire-alsaandpipewire-pulseIs this project not compatible with PipeWire sound systems?
If I had to guess, it looks like it could work somehow: Issue #299
@Tranquill6 commented on GitHub (Apr 16, 2024):
I don't mean to bring up an old issue, but I am having the same problem as @nathan-2006 and haven't had any luck to solve it. I am just relying on ALSA/Pipewire for audio but I get the same error whenever I try to select my arch linux as a device. DId you end up figuring out how to fix it?
@aome510 I know you brought up to install
pulseaudio-alsabut I am using pipewire (with pipewire-pulse installed). I am using Arch Linux 6.8.2@aome510 commented on GitHub (Apr 16, 2024):
I think it should work with
pipewire. I no longer have access to Linux machine so couldn't test it myself. Did you get the sameDeviceNotAvailableerror? You can also try other audio backends to find one that works.@Tranquill6 commented on GitHub (Apr 16, 2024):
Yep, I got the same error. I tried the alsa-backend but everytime I tried to play a song it seemed to have crashed to the terminal I am using but not completely. It was weird, it like glitched weird and I had to force close it. It didn't post anything to the .log file or .backtrace file so not sure what was going on there
@aome510 commented on GitHub (Apr 16, 2024):
Does any of rodio examples work for you? For example,
cargo run --example music_mp3. I cannot reproduce this issue on my end, so nothing much I can help unfortunately@Tranquill6 commented on GitHub (Apr 17, 2024):
@aome510 I will try other backends and post back here on how that goes. What determines which audio device is used? When I use a command like
aplay -lI have two cards, my main one is first but I know on spotify-tui, I had to specify for that to get used. Is there anything like that for spotify-player?@Tranquill6 commented on GitHub (Apr 17, 2024):
@aome510 I fixed my issue, I needed to use the pulseaudio backend, then I went into my pavucontrol (volume control) and made sure my audio device was set to primary, and unmuted then everything worked really well!
Note to others, make sure to have
pipewire-pulseinstalled if you are using pipewire since there isn't a direct backend for it@aome510 commented on GitHub (Apr 17, 2024):
Nice. Glad that you fixed it yourself.
I'm pretty sure
spotify-tuidoesn't support specifying audio device as they don't support streaming. I think you may mean Spotify device whichspotify_playeralso supports, but you need to set up Spotify Connect before. Refer to https://github.com/aome510/spotify-player?tab=readme-ov-file#spotify-connect for more details@Tranquill6 commented on GitHub (Apr 17, 2024):
@aome510 Ah, you're right, I am thinking of the
deviceconfig option for spotifyd. I am so thankful that spotify-player doesn't rely on something like spotifyd