turning audio playback volume off

Hello,

I am a very inexperienced programmer, trying to program for the first time using
Psychophysic Toolbox.

I want to program a video that only plays when you hold the mouse pointer over the
embedded video screen.

I have got the video image to freeze when you move the mouse away, but because the loop is
constantly refreshing, you get a juddering noise on the audio.

I thought the easiest solution to this was merely to set audio volume to 0 when the video
playback pauses, and then back to normal when it recommences...

But I can't work out how to do this! After three hours of trying!

Please help.

Sam
PlayMoviesDemoOSX.m contains everything you'll need.
Press Cursor down/up keys to pause/resume playback,
then go through the code that handles those keys
to see how it is done.

-mario

--- In psychtoolbox@yahoogroups.com, "samuel_wass" <samuel_wass@...> wrote:
>
> Hello,
>
> I am a very inexperienced programmer, trying to program for the first time using
> Psychophysic Toolbox.
>
> I want to program a video that only plays when you hold the mouse pointer over the
> embedded video screen.
>
> I have got the video image to freeze when you move the mouse away, but because the
loop is
> constantly refreshing, you get a juddering noise on the audio.
>
> I thought the easiest solution to this was merely to set audio volume to 0 when the video
> playback pauses, and then back to normal when it recommences...
>
> But I can't work out how to do this! After three hours of trying!
>
> Please help.
>
> Sam
>