Audio Functions - VsFoxaTeam/FNF-Unfulfilled-Journey-Foxa-Engine GitHub Wiki
Will play a sound inside the game. (Must Be a .OGG Format)
-
sound- The file name that will be played. (Relative to located inmods/sounds/orassets/sounds/) -
volume- An optional value, volume percent goes from0to1, Default value:1. -
tag- An optional value, if you don't want to utilize it, then don't include a third value. Should only be used if you wish to halt, resume, adjust the time, volume, or fade in/out your sound.
Will play a music inside the game. (Must Be a .OGG Format)
-
sound- The file name that will be played. (Relative to located inmods/music/orassets/music/) -
volume- An optional value, volume percent goes from0to1, Default value:1. -
loop- An optional value, will loop the music indefinitely, Default value:false.
This will stop playing a sound permanently.
-
tag- The sound tag name.
This will pause the sound that is playing currently.
-
tag- The sound tag name.
This will resume the sound if the sound is currently pause.
-
tag- The sound tag name.
This will cause the sound to fade at the start of playing the sound.
-
tag- The sound tag name, if you wish to do a fade in on the background music instead, leave this option blank. -
duration- How long the fade will last on the song fromfromValueandtoValue. -
fromValue- The starting value of the sound volume, Default value is0. -
toValue- The end value of the sound volume, Defualt value is1.
This will cause the sound to fade at the end of playing the sound.
-
tag- The sound tag name, if you wish to do a fade in on the background music instead, leave this option blank. -
duration- How long the fade will last on the song fromtoValue. -
toValue- The end value of the sound volume, Defualt value is0.
This will cause the sound to cancel the fade of playing the sound.
-
tag- The sound tag name, if you wish to do a fade in on the background music instead, leave this option blank.
This will cause the music to fade at the start of playing the sound.
-
tag- The music tag name, if you wish to do a fade in on the background music instead, leave this option blank. -
duration- How long the fade will last on the song fromfromValueandtoValue. -
fromValue- The starting value of the sound volume, Default value is0. -
toValue- The end value of the sound volume, Defualt value is1.
This will cause the music to fade at the end of playing the sound.
-
tag- The music tag name, if you wish to do a fade in on the background music instead, leave this option blank. -
duration- How long the fade will last on the song fromtoValue. -
toValue- The end value of the sound volume, Defualt value is0.
Sets the current volume of the sound.
-
tag- The sound tag name, if you wish to do a fade in on the background music instead, leave this option blank. -
value- The volume value, Goes from:0to1.
Note: The miliseconds will be converted into seconds, Example: 5000 miliseconds will be converted to 5 seconds.
Sets the current sounds position in miliseconds.
-
tag- The sound tag name, if you wish to do a fade in on the background music instead, leave this option blank. -
value- The new position that will be set.
Gets the current volume of the sound.
-
tag- The sound tag name, if you wish to do a fade in on the background music instead, leave this option blank.
Gets the current sounds position in miliseconds.
-
tag- The sound tag name, if you wish to do a fade in on the background music instead, leave this option blank.
