Skip to content
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

[Solved] Audio glitches on Arch Linux #60

Closed
samuelebonaffino opened this issue Nov 17, 2020 · 4 comments
Closed

[Solved] Audio glitches on Arch Linux #60

samuelebonaffino opened this issue Nov 17, 2020 · 4 comments

Comments

@samuelebonaffino
Copy link

Hi,

I've used this amazing library for quite a lot now, without any serious issues. Recently I installed Arch Linux on a Lenovo Miix 320 and everything works fine, including audio in every other program I run. Unfortunately, when I try to run any track or examples from your library, audio is completely glitched. My code runs fine and everything works, just you can't hear the audio properly at all.
I'd like to mention I had other distros on this tiny laptop and I've never had this trouble before, also I don't see any notable loads on the CPU so it's not the case. I use ALSA + Pulseaudio and pavucontrol, I tried to uninstall and reinstall everything and it still doesn't work. Another thing I'd like to mention is that if I switch from speakers to headphones you can hear the glitchy audio through the correct source, so it recognises it and I guess the problem is not related to it.

I have the latest version of Processing (3.5.4) and tried both the latest stable release and the v2.3.0 test build version of the library.

If you need any additional information ask me everything, I'm willing to help to solve the problem.

@kevinstadler
Copy link
Collaborator

Thanks for the thorough report. Have you ever tried playing sound from any other Java applications? The synthesis engine underlying the Sound library makes use of the JavaSound interface, and a quick google shows that this might be an issue with Java/JavaSound on Arch Linux generally, and not specifically Processing/the Sound library.

Another way to test this: could you try installing the minim Processing library and see if their example sketches also produce the same sound artefacts?

@samuelebonaffino
Copy link
Author

Thanks a lot for answering back. I'll make all of the test you mentioned and let you know the results.

@samuelebonaffino
Copy link
Author

Can't explain how happy I am to tell you it's now working. All I did was installing the additional package pulseaudio-alsa, and after a reboot this did the trick, you can find out more at this link: https://www.reddit.com/r/linux4noobs/comments/8qgcxy/java_sound_does_not_work_with_other_applications/

Also, just for the records, before finding this fix, I tried some examples from Minim library and they didn't work as expected, so the problem is related to JavaSound/Pulseaudio/ALSA. Thank you so much for the hint, I'm so happy.

@kevinstadler
Copy link
Collaborator

That's great to hear, glad it's working now!

@kevinstadler kevinstadler changed the title Audio glitches on Arch Linux [Solved] Audio glitches on Arch Linux Nov 17, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants