-
-
Notifications
You must be signed in to change notification settings - Fork 220
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Impossibile (for me) to use ALSA MIXER with Raspotify #704
Comments
Hi @lula73, Sorry about your debugging issues, I'll try to help you, it's no bother. I can think of two possible things that's going wrong for you:
|
Also as a side note, the names for the configuration options should work fine, they are read as-is by Librespot and you can see all the options in the librespot source code. There is also a wiki with options. |
Perhaps another suggestion is to try running Librespot manually from the command line and tweak the options? This way you can rule out any misconfiguration issues from Raspotify. |
Thank you for the suggestions, i will try them tonight one by one. Tnks! |
The problem seem finally resolved. It's related to permission edit and change
and finally :
Hope other users will not loose 10 days... : D Tnks for indications Kim!!! |
Very nice! Glad you got it working. Upgrading Raspotify will reset your changes. To make your changes permanent across upgrades you should edit the service through systemctl. I will consider making some changes to the default configuration so that ALSA device sharing can work out of the box, your debugging results will be helpful in this regard. It will require some more testing on my part though. And perhaps Raspotify should have its own user with well-defined permissions. |
It seems incredible, but this morning I tested and running VLC music work perfectly mixing with raspotify music. Never made reboot in the last days, But After a reboot, the mixing doesn't work anymore. So i get again the same errors when i try to run spotify with VLC running :
` |
Ok i got it. The other problem was the user. Librespot run by Root, other application by bmo. i deleted
and insert
check that librespot is running not by root, finally is ok |
Compatible Device
Are you sure?
Compatible OS
Compatible Configuration
Latest Version
Are you sure?
Due Diligence
What happened?
I apologize for having to bother you, but after 10 days of attempts... I'm starting to think there might be a bug or maybe a problem in the documentation.
I'm building a voice assistant application for Raspberry Pi 5 and I've integrated Spotify with Raspotify.
Raspotify/Librespot works perfectly and the music works, but I can't share the audio device with other applications.
I removed pulseAudio and set up only ALSA with Mixer, and when I use two concurrent programs (e.g., VLC and Browser), the music mixes perfectly.
But this doesn't happen with Raspotify: if a playback starts and music is playing, other applications can't access the audio.
If another application like vlc starts for first, then Raspotify errors out and the device isn't found or busy.
Since asound.conf and ALSA mixer work at the OS level because the mixing works, the problem is in the Raspotify CONF, where, regardless of the dozens and dozens of attempts made, it seems to take the entire device without passing through the mixer. I believe mixer management for Raspotify is essential, and I haven't found clear documentation on this.
I hope someone can help me because mixing is essential for applications, and anyway, the operating system sounds must coexist with the music. Tnks! Luca
An Example of my raspotify Conf
Others variations
My asound.conf in attach
asound.txt
Relevant log output and/or the contents of /etc/raspotify/crash_report if any ( sudo journalctl -u raspotify -b and sudo cat /etc/raspotify/crash_report )
The text was updated successfully, but these errors were encountered: