Sound.Clone

From Real Software Documentation

Jump to: navigation, search
Method
Sound.Clone ( ) As Sound

Returns a clone of the sound as a Sound, but can be played, stopped, and modified independently of the original sound.

Notes

Use Clone instead of opening the same sound file twice, because Clone is likely to be substantially more efficient.

Example

This example clones a sound that has been added to the Project Editor and plays it.

dim mySound as new sound
mySound= chimes.Clone
mySound.pan = pan.value
mySound.volume = VolumeValue.value
mySound.Play
Personal tools