Fading out sound File..

someone
08-31-2003, 09:57 PM
Hi all..

I have a project that plays sound files i would like to be able to fade out the sound before the sound had finished playing and to be able to specify how long to take to fade it out and how after how long to start fading it out..

I was thinking about useing the volume thing in the mediaplayer control somehow... as i am already using the mediaplayer component this would be very good if this was was possible...

How would i go about doing something like this?? If it isn't possible this way is there any other way that it is possible???

Thanks in adveance,
Someone

passel
08-31-2003, 10:07 PM
Yes, it is possible. I don't know which Media Player you are using, but
if its the msdxm.ocx (the older one), then adjust the volume more and
more negative (0 is full volume, I'm not sure of the range, but it may go
down to -32768 for full off).

You can look at MediaPlayer1.CurrentPosition compared to MediaPlayer1.Duration
to decide how long before the end you want to start attenuating the
volume. The CurrentPosition and Duration values are in seconds, on the
old player.

EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum