Play sound samples while working

how can i achieve this??

like playing a sound sample when droping some pixels or draging the mouse pen, or trigerring the bucket tool??

mybe an script or a extension, can you guy point me to the right direction???

im a programer experienced on c c++ c# and did dome lua on the psp age… but im really cold right now.