Syntax

Result = dbCloneSound(SourceID, DestinationID)

Description

If #PB_Any is used as the SoundID parameter, the new ID will be returned as 'Result'. Otherwise the value of 'Result' is the same value passed as the SoundID parameter.

This command will clone a sound into the specified Destination SoundID. Cloning a sound will create a new sound that can be played like any other loaded sound, but uses the same WAV data of the original sound. The advantage of sound cloning is that one hundred sounds could be used with only a single instance of the sound data stored in memory.

See Also

dbDeleteSound, dbLoad3DSound, dbLoadSound, dbSaveSound, dbSoundExist, dbSoundType