SetVolume(id,volume)
id
. If
the sample is currently playing, the volume will be modified on-the-fly
which can be used for sound fades etc.
Starting with Hollywood 2.0, volume
can also be a string containing
a percent specification, e.g. "50%".
LoadSample(1, "Sound/Samples/GroovyLoop.wav") PlaySample(1) Wait(100) For k = 64 To 0 Step -1 SetVolume(1,vol) NextThe above code loads the sample "Sound/Samples/GroovyLoop.wav", plays it, waits 2 seconds and then does a fade out.