AudioModule.waveformSlice

Creates a new waveform from an existing one using slicing.

class AudioModule
nothrow
int
waveformSlice
(
uint id
,
uint src
,
uint pos
,
uint length
)

Parameters

id uint

The ID of the new sample.

src uint

The ID of the original sample.

pos uint

The position where the slice begins.

length uint

The length of the slice.

Return Value

Type: int

0 on success, -1 if module don't support this feature, -2 if slice is out of bounds (longer than the sample, etc.), -3 if sample is not slicable (ADPCM, etc.).

Meta