SDLSample.play

Plays this sample.

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

Parameters

channel int

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

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