No sound when I export sketch for Raspberry Pi Linux 64

I have and application I am exporting to run on raspberry pi 4. It runs fine in processing IDE but when I export it , I no longer get any sound but otherwise seems to work fine.

I checked it out with the Sampler example file that comes with the Sound library and the same problem exists. Any clues? Thanks !!

Everything is up to date : latest version of Processing and Sounds library.

So the problem causing this for me is that I that I was trying to run the java versions in terminal with SUDO . By default , user root is not a member of group audio on the pi - just running the script without SUDO solves the problem.

Check raspberry Pi audio configuration confirm sound library compatibility, verify export settings, install necessary codecs, correct file paths and permissions and look for console errors during runtime. Also update your raspberry Pi software for potential fixes.