-- Lingo syntax
soundChannelObjRef.fadeOut({intMilliseconds})
// JavaScript syntax
soundChannelObjRef.fadeOut({intMilliseconds});
Sound Channel method; gradually reduces the volume of a sound channel to zero over a given number of milliseconds.
The current pan setting is retained for the entire fade.
intMilliseconds Optional. An integer that specifies the number of milliseconds over which the volume is reduced to zero. The default is 1000 milliseconds (1 second) if no value is given.
This statement fades out sound channel 3 over a period of 5 seconds:
-- Lingo syntax sound(3).fadeOut(5000) // JavaScript syntax sound(3).fadeOut(5000);
fadeIn(), fadeTo(), pan, Sound Channel, volume (Windows Media)