You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
No sound on Linux distributions using pavucontrol #16
Uninstalling pavucontrol and its dependencies causes the program to have sound again, however the sound is distorted. The sound seems to be stuttering and it takes more time for the sample to be fully played out in Processing than using mplayer (about twice as long).
Uninstalling pulseaudio (since it sometimes conflicts with direct ALSA usage) neither improves nor makes the situation worse.
Sound sample taken from: http://soundbible.com/1909-Dump-Truck.html
Converted from mp3 to wav using: ffmpeg -i Dump_Truck-Mike_Koenig.mp3 dump_truck.wav
Using mplayer on dump_truck.wav yields the expected sound.
Removing the draw() function also causes Processing to be silent. Although this function is present in the reference docs it is not stated in the text that it is necessary to overwrite it.
Edit:
The uninstalled packages (along with pavucontrol) are:
Same issue here? No error, no indication of failure. Upon opening Catia (which shows connections, sources, etc in ALSA) it is not even there. Like the program does not exist, or at least, does not play sound. Hope this helps! :)
haha just kidding, it actually does show up, and connects properly to the respective output channels (pictured) yet there is still no sound. (Using SimplePlayback example)
@robog-two could you try calling Sound.list() and copy-pasting the output of the sketch here? I wonder if the problem is that the virtual interface provides a lot of channels, and the output is simply sent to the wrong channel. You could also try selecting the correct output device using the outputDevice() method, maybe ALSA isn't selected as the default.
Also, are you using pavucontrol or is this a general ALSA problem?
no dice with outputDevice(), though there is an audible pop on the speakers from device 1 (working? sort of?)
And that was using the sin oscillator SinOsc sin = new SinOsc(this); sin.play(200, 0.2); sin = new SinOsc(this); sin.play(205, 0.2);
Pavucontrol is sort of... not the problem. Pavucontrol is actually just the GUI frontend for configuring PulseAudio, and, I actually don't use pulse at all - though I believe it is emulated by PipeWire (and probably that is what Processing is connected to). Catia is actually an interface for the JACK audio subsystem which is why it only shows information gathered from ALSA through JACK. Welcome to linux audio. 💩
Also, seeing as this issue is from 2018 - it is likely a pulse issue since PipeWire wasn't the default in Ubuntu & derivatives until last year, and its emulation is often less buggy than pulse itself, as crazy as that sounds.
From my investigation with Catia (manually forcing the outputs to speakers) audio does not play from any of the outputs it exposed.
woah no way, I actually DID have pavucontrol installed? anyways, uninstalled it, same issue listed above
Uninstalling pavucontrol and its dependencies causes the program to have sound again, however the sound is distorted. The sound seems to be stuttering and it takes more time for the sample to be fully played out in Processing than using mplayer (about twice as long).
Yes, and apparently shifting between the two at random. I wonder if installing or uninstalling pavucontrol restarts a service that may be freeing memory (?) or something similar, thus creating a temporary fix.
Activity
WysokiStudent commentedon May 4, 2019
Same issue here:
Uninstalling pavucontrol and its dependencies causes the program to have sound again, however the sound is distorted. The sound seems to be stuttering and it takes more time for the sample to be fully played out in Processing than using mplayer (about twice as long).
Uninstalling pulseaudio (since it sometimes conflicts with direct ALSA usage) neither improves nor makes the situation worse.
Sound sample taken from: http://soundbible.com/1909-Dump-Truck.html
Converted from mp3 to wav using:
ffmpeg -i Dump_Truck-Mike_Koenig.mp3 dump_truck.wavUsing mplayer on dump_truck.wav yields the expected sound.
Removing the draw() function also causes Processing to be silent. Although this function is present in the reference docs it is not stated in the text that it is necessary to overwrite it.
Edit:
The uninstalled packages (along with pavucontrol) are:
[-]No sound on Linux[/-][+]No sound on Linux distributions using pavucontrol[/+]cybergrunge-ops commentedon Sep 5, 2021
why is there still not a solution to this?!
robog-two commentedon Sep 2, 2022
Same issue here? No error, no indication of failure. Upon opening Catia (which shows connections, sources, etc in ALSA) it is not even there. Like the program does not exist, or at least, does not play sound. Hope this helps! :)
robog-two commentedon Sep 2, 2022
haha just kidding, it actually does show up, and connects properly to the respective output channels (pictured) yet there is still no sound. (Using SimplePlayback example)

kevinstadler commentedon Sep 4, 2022
@robog-two could you try calling
Sound.list()and copy-pasting the output of the sketch here? I wonder if the problem is that the virtual interface provides a lot of channels, and the output is simply sent to the wrong channel. You could also try selecting the correct output device using the outputDevice() method, maybe ALSA isn't selected as the default.Also, are you using pavucontrol or is this a general ALSA problem?
robog-two commentedon Sep 4, 2022
no dice with outputDevice(), though there is an audible pop on the speakers from device 1 (working? sort of?)
And that was using the sin oscillator
SinOsc sin = new SinOsc(this); sin.play(200, 0.2); sin = new SinOsc(this); sin.play(205, 0.2);Pavucontrol is sort of... not the problem. Pavucontrol is actually just the GUI frontend for configuring PulseAudio, and, I actually don't use pulse at all - though I believe it is emulated by PipeWire (and probably that is what Processing is connected to). Catia is actually an interface for the JACK audio subsystem which is why it only shows information gathered from ALSA through JACK. Welcome to linux audio. 💩
Also, seeing as this issue is from 2018 - it is likely a pulse issue since PipeWire wasn't the default in Ubuntu & derivatives until last year, and its emulation is often less buggy than pulse itself, as crazy as that sounds.
robog-two commentedon Sep 4, 2022
woah no way, I actually DID have pavucontrol installed? anyways, uninstalled it, same issue listed above
robog-two commentedon Sep 4, 2022
this is the strangest thing I have ever experienced
robog-two commentedon Sep 4, 2022
And now sound is gone again when trying the SimplePlayback example, and again again when going back to the sine oscillator.
kevinstadler commentedon Sep 6, 2022
So the current state is no sound at all, or distorted sound?
robog-two commentedon Sep 6, 2022
Yes, and apparently shifting between the two at random. I wonder if installing or uninstalling pavucontrol restarts a service that may be freeing memory (?) or something similar, thus creating a temporary fix.