IrrKlang.NET

ISoundEngine.AddSoundSourceFromFileMethod(String)

Adds sound source into the sound engine as file.

[VisualBasic]
OverloadsPublicFunctionAddSoundSourceFromFile( _
ByVal soundNameAsString_
)AsISoundSource
[C#]
publicISoundSourceAddSoundSourceFromFile(
stringsoundName
);

Parameters

soundName
Name of the sound file (e.g. "sounds/something.mp3"). You can also use this name when calling play3D() or play2D().

Return Value

Returns the added sound source or null if not sucessful because for example a sound already existed with that name. If not successful, the reason will be printed into the log.

See Also

ISoundEngine Class | IrrKlang Namespace | ISoundEngine.AddSoundSourceFromFile Overload List