Make Sound Play as I Press Button

Is there a node or function to play a sound as the mouse button is held down on a button to trigger it, where it will stop playing as soon as the mouse button is released, but will resume the sound where it left off when it is pressed again?