SDLSample.playTimed

Plays this sample only within a certain time limit.

class SDLSample
int
playTimed
(,
Duration timeLimit
,
int loops = 0
,
Duration fadeInTime = 0.seconds
)

Parameters

channel int

channel to play on. -1 plays on first inactive channel.

timeLimit Duration

time after which the sample stops playing.

loops int

number of times to loop this sample.

fadeInTime Duration

time over which this sample is faded in.

Return Value

Type: int

channel the sample is now playing on.

Meta