Skip to content

Sound / Audio doesn't work in Processing 4.4.1 using snap on Ubuntu 22.04 #1078

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

Closed
Luke2642 opened this issue May 7, 2025 · 2 comments · Fixed by #1088
Closed

Sound / Audio doesn't work in Processing 4.4.1 using snap on Ubuntu 22.04 #1078

Luke2642 opened this issue May 7, 2025 · 2 comments · Fixed by #1088
Assignees
Labels
bug Something isn't working
Milestone

Comments

@Luke2642
Copy link

Luke2642 commented May 7, 2025

Most appropriate sub-area of Processing 4?

Build process, IO

Processing version

4.4.1

Operating system

Ubuntu 22.04

Steps to reproduce this

I'm no expert but I think I've found why the sound won't work, despite pulseaudio, alsa and lib java audio etc all working perfectly on my computer.

In the terminal, run "snap connections processing":

Interface Plug Slot Notes
desktop processing:desktop :desktop -
desktop-legacy processing:desktop-legacy :desktop-legacy -
home processing:home :home -
network processing:network :network -
opengl processing:opengl :opengl -
wayland processing:wayland :wayland -
x11 processing:x11 :x11 -

There is nothing for audio. Thus, when you add the sound library, it can't escape the snap environment and always fails to play or detect the mic.

snippet

import processing.sound.*;

void setup() {
  Sound.list();
}

Additional context

"PortAudio is not supported on this operating system/architecture"
"Sound library: Didn't find any output devices with the default driver, trying PortAudio..."

pavucontrol works fine, but processing never appears as an application.

During the debug process I've also run:

sudo apt install portaudio19-dev libportaudio2 libasound-dev
sudo apt install libpulse-java
sudo apt install pulseaudio-utils
pulseaudio --start

And restarted etc, no change.

Would you like to work on the issue?

no

@Luke2642 Luke2642 added the bug Something isn't working label May 7, 2025
@Luke2642 Luke2642 changed the title Sound / Audio doesn't work in snap Sound / Audio doesn't work in Processing.org on Ubuntu 22.04 May 7, 2025
@Luke2642
Copy link
Author

Luke2642 commented May 7, 2025

Update: Running the portable version instead of the snap doesn't error.

@Luke2642 Luke2642 changed the title Sound / Audio doesn't work in Processing.org on Ubuntu 22.04 Sound / Audio doesn't work in Processing 4.4.1 using snap on Ubuntu 22.04 May 7, 2025
@Stefterv
Copy link
Collaborator

Hi @Luke2642 I've added a pr that should hopefully grant these permissions in the future.

@Stefterv Stefterv added this to the 4.4.4 milestone May 12, 2025
@Stefterv Stefterv self-assigned this May 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
Status: Completed
Development

Successfully merging a pull request may close this issue.

2 participants