processing / processing-sound

Audio library for Processing built with JSyn
https://processing.org/reference/libraries/sound/
GNU Lesser General Public License v2.1
149 stars 50 forks source link

Does not work on Raspberry PI 4 #49

Closed theseanzo closed 1 year ago

theseanzo commented 4 years ago

On the latest release of Raspbian, you cannot load files without them being inaudible. It causes crashes in programs I have run in previous raspbian versions.

kevinstadler commented 4 years ago

Thanks for reporting, could you post the error/stack trace that you get when trying to run your old sketches?

monkstone commented 4 years ago

@kevinstadler quite possibly this is due to a missing dependency, I had same issue. But then I installed pulseaudio and library worked.

sudo apt-get install pulseaudio
# and because it wont harm, might be useful later
sudo apt-get gstreamer1.0-pulseaudio
monkstone commented 4 years ago

Interestingly works out of box on ManjaroARM(64bit) OS on RaspberryPI4 where pulseaudio is already installed. People at Raspbian seem to have a hate thing going with pulseaudio.

theseanzo commented 4 years ago

Hey, just got back to PI development. Yeah, there isn't an error thrown. What happens is the audio constantly clips. I'm using raspbian 5.4.73-v7. I have pulseaudio installed and gstremmer1.0-pulseaudio.

kevinstadler commented 4 years ago

@theseanzo your original issue was about loading sound files, is the clipping issue also just with sound files or any kind of output audio? Could you try one of the simple oscillator examples and see if it has anything to do with output amplitude?