sound effects on different events in Phys2d

Hi,

I’m new to game programming. Currently I’m working on Phys2d to make some physics related simulations. i.e. two Balls colliding, object moving on surface with certain friction etc etc.

Now I want to add some sound effects in it. it plays collision sound when two balls collide with eachother.
I don’t know how to do that. Could anyone pls guide me to accomplish this.

Thanks in advance.