Sound Scrub

Hi ,

In maya sound is scrubbed if 'timeslider' is dragged. Is there any way to scrub the sound when clicking the timeline (ie new time value is set) or when moving step forward/backward?

Thanks, Vlad.

see soundControl command

actually I do not need to create any UI like soundControl but need to override the behavior of maya timeslider.
It seems the script below should enable scrubbing on mouse click but nothing has changed after I run it.

CODE
global string $gPlayBackSlider;
string $pressCmd = "timeControl -e -beginScrub $gPlayBackSlider";
string $releaseCmd = "timeControl -e -endScrub $gPlayBackSlider";
timeControl -e -pc $pressCmd -rc $releaseCmd $gPlayBackSlider;

I thinks it is default behaviour of timeline and this script does not make anything new just enables the scrub for drag.

I need sound scrubbed when mouse is pressed not dragged

if you read time control theres a option for how loong snippet to play on mouse click. At least that what the 8.5 manual told me whan i left this morning

CODE
timeControl -e -repeatOnHold true $gPlayBackSlider;
timeControl -e -repeatChunkSize 5.0 $gPlayBackSlider;

executing it enables something like 'scrub' when clicking the time line. but I need also to scrub sound when moving frame by frame forward/backward

BTW is there any way to access maya audio API?