SoundData:copyFrom

Available since LÖVE 12.0
This function is not supported in earlier versions.

Copies the specified section of the given SoundData into this one.

Function

Synopsis

SoundData:copyFrom( sourcedata, sourcestart, samplecount, deststart )

Arguments

SoundData sourcedata
The SoundData to copy from.
number sourcestart
The first sample in the source SoundData to copy from.
number samplecount
The total number of samples to copy.
number sourcestart
The first sample in the destination SoundData to copy to.

Returns

Nothing.

Notes

Samples start from zero. If a SoundData has multiple channels, each sample contains data for all channels.

See Also

Other Languages