SoundNode: Difference between revisions

From Crumbled World Wiki
(Created page with "{{:SoundNodeExampleCode}} ==Inheritance== SceneNode ==Constructor== {| class="wikitable" !|function !|description |- |SoundNode() | |- |SoundNode(string fileName) | |- |} ==Functions== {| class="wikitable" !|return !|function !|description |- | |play(float soundLevel, bool repeat) |Play a sound. soundLevel [0,2] |- | |play(float soundLevel, boo...")
 
No edit summary
 
Line 4: Line 4:
[[SceneNode]]
[[SceneNode]]


==Constructor==
==Static functions==
{| class="wikitable"
{| class="wikitable"
!|return
!|function
!|function
!|description
!|description
|-
|-
|SoundNode()
|[[SoundNode]]
|
|[[SoundNode:new()|new]]()
|Create a new Instance of the the SoundNode
|-
|-
|SoundNode(string fileName)
|[[SoundNode]]
|
|[[SoundNode:new(string fileName)|new]](string fileName)
|Create a new Instance of the the SoundNode
|-
|-
|}
|}

Latest revision as of 13:07, 5 July 2025

SoundNodeExampleCode

Inheritance

SceneNode

Static functions

return function description
SoundNode new() Create a new Instance of the the SoundNode
SoundNode new(string fileName) Create a new Instance of the the SoundNode

Functions

return function description
play(float soundLevel, bool repeat) Play a sound. soundLevel [0,2]
play(float soundLevel, bool repeat, float duration) Play a sound. soundLevel [0,2], duration how long timer before sound level is 100%
bool isPlaying()
bool stop()
bool stopFadeOut(float fadeOutTime)
setSoundPlayLimit(fint maxCount) The number of time a sound can be played.
setLocalSoundPLayLimit(fint maxCount)
setSoundRolloff(float roalloff)