Setting the amplitude seems to have no effect on the resulting sound.
Example code:
SoundFile pegHit = new SoundFile(p, "peg_hit.wav");
pegHit.amp(0f);
pegHit.play();
You can still hear the noise even though there should be complete silence.
Using play with the amplitude parameter seems to have the same effect.
Processing Sound Version: v2.4.0
Operating System: Fedora 43
Let me know if you want any more information.