ultrastares / ultrastar-worldparty

UltraStar WorldParty. A karaoke game inspired by SingStarâ„¢
https://ultrastar-es.org
GNU General Public License v3.0
133 stars 35 forks source link

No plug named alsa #57

Open deuteragenie opened 3 years ago

deuteragenie commented 3 years ago

After a fresh snap install of r21.02 on Ubuntu, the app recommends to use the alsa plug when starting the first time.

However, a "sudo snap connect ultrastar-worldparty:alsa" result in the following:

error: snap "ultrastar-worldparty"has no plug named "alsa"

What gives ?

Subsequent starts of the app use PulseAudio

EDIT1: r21.02 v60, on Ubuntu 21.04, fresh install of the OS

EDIT2: Looks like the alsa plug was removed recently:

https://github.com/ultrastares/ultrastar-worldparty/commit/953cdd54d4e7dc1d5f250ffb4ea7d84b5e79ef5f#diff-1c27324f013705cbf0c49f3d3bb103c7069ed5988889d426c10cfc25684f0a31

So I gather that:

a) The recommendation message is not in-line with the latest snap/code, and needs to be updated. b) Defaulting to pulseaudio is incorrect, if the recommendation (see above) is to use alsa

TeLiXj commented 3 years ago

Please, the next time that you want to write a new comment edit the first if you don't have an answer.

After a fresh snap install of r21.02 on Ubuntu, the app recommends to use the alsa plug when starting the first time.

where is that recommendation? as you said the alsa permission was removed

deuteragenie commented 3 years ago

Thanks.

I was unable (and still am) to edit the original text with the complementary information. Maybe a browser issue. Unfortunately, I could not capture the text recommending to use the alsa plug. Is there a way to "reset" the config to the default to try to get that message back ?

Also, please note that the app defaults to pulseaudio, whereas that recommendation was to use alsa...

TeLiXj commented 3 years ago

You can remove the snap with purge, I can't remember exactly but could be similar to sudo snap remove --purge ultrastar-worldparty Alsa is used internally if needed because the permission audio-playback and audio-record can do it, but all it's without user interaction

deuteragenie commented 3 years ago

Here is the message just after a fresh install:

Testing for explicit PulseAudio choice... Testing for ALSA permissions... UltraStar WorldParty may have better audio device support if granted permission to access the ALSA audio system.

If you experience audio problems, you may wish to grant this access by using the Software Centre or the Snap Store to add the 'alsa' permission to UltraStar WorldParty. It is safe to continue without doing so.

You can also grant this permission by running the following command in a Terminal window:

sudo snap connect ultrastar-worldparty:alsa

If you choose to continue and later wish to change your mind, you can remove the file /home/usr/snap/ultrastar-worldparty/common/Always use PulseAudio.

Type [p] to re-test after granting [p]ermission, [s] to [s]tart and not ask again, [a] to start and [a]sk again next time, or [c] to [c]ancel (default)

As the alsa plug has been disabled, this recommendation is ineffective.

TeLiXj commented 3 years ago

Wow this message is new for me! IDK when was added to the snap!! Thanks for notifying us ;) The message only appear when you use the command, not using the shortcut. If you want to execute the game using it press s and should works fine. I'll try to remove it in the next version