IrrKlangPlay2D

section index

## NAME

IrrKlangPlay2D - plays a sound

## SYNOPSIS

*sound.l = IrrKlangPlay2D(*soundsource.l, [playLoped.l, [startPaused.l, [track.l]]] )

## FUNCTION

Plays a sound source as 2D sound with its default settings stored in the SoundSource.

## INPUTS

*soundsource.l | - | pointer to a soundsource, previously added with IrrKLangAddSoundSource()
playLooped.l | - | determine if the sound should play looped (default = #False)
startPaused.l | - | determine if the sound initalized but not started (default = #False)
track.l | - | Makes it possible to track the sound.

## RESULT

pointer to a Sound or #Null, please read the NOTES

## EXAMPLE

       *sound.l = IrrKlangPlay2D("mysound.ogg")

## NOTES

It is important to know, thet you have the Sound play paused or tracked to get a pointer back. And only with this pointer you can use the IrrKLangSound...()-Functions. For example to change the volume.