IrrKlangAddSound

section index

## NAME

IrrKlangAddSound - Adds sound source

## SYNOPSIS

*soundsource.l = IrrKlangAddSound(filename.s, [[ mode.l ],[ preload=#False]] )

## FUNCTION

Adds sound source into the sound engine as file. Please note: For performance reasons most implementations will not try to load the sound file when calling this method, but only when IrrKlangPlay..() is called with this sound source as parameter.

## INPUTS

mode.l | - | Streaming mode for this sound source (#IRRKLANG_EXSM_*)
preload.l | - | If this flag is set to #False (which is default) the sound engine will not try to load the sound file when calling this method, but only when play() is called with this sound source as parameter.

## RESULT

pointer to a Sound source if success, otherwise #Null

## EXAMPLE

       *soundsource.l = IrrKlangAddSound("mysound.ogg")