Previous Up Next

asSndCopy
Duplicate a AsSnd already created.

AsSnd asSndCopy (
Chn _channel_
AsSnd _sound_
)
Parameters

_channel_
Proprietary channel.
_sound_
Object AsSnd to be duplicated.
Return value

The new AsSnd created, or nil if the creation failed.
Remark

The duplication of a AsSnd loaded in a static manner, with the AS_SND_STATIC flag called by the function asSndLoad allows to avoid new memory allocation for the data but still returns a AsSnd which is completely independent from the first.