API ReferenceGE Extensionsflowgraphnodesaudio
Audio Fade In (Flowgraph Node)
- **Node Name:** `Audio Fade In`
Overview
- Node Name:
Audio Fade In - Icon:
audiotrack - Category:
once_f_duration - Tags:
sound,audio,volume - File:
extensions/flowgraph/nodes/audio/fadeIn.lua
Fades the global audio volume up from silence.
Pin Schema
Input Pins
| Pin | Type | Default | Description |
|---|---|---|---|
duration | number | 1 | Duration of fade in seconds |
Output Pins
Standard once_f_duration pins (flow, started, finished).
Behavior
workOnce()- Sets SFX global parameterg_FadeTimeMStoduration * 1000andg_GameLoadingto0(not loading = audio fades in). Sets duration state tostarted.work()- Tracks elapsed time viaself.timerusingself.mgr.dtReal. Sets duration state tofinishedwhen timer exceeds duration.reset()- Resets timer, duration state, and SFX parameters to defaults (g_FadeTimeMS = 0,g_GameLoading = 0).
Notes
- Uses
SFXSystem.setGlobalParameter()for the actual audio fade - this is the engine-level global volume system. - The difference from
fadeOutisg_GameLoading = 0(fade in) vsg_GameLoading = 1(fade out).
See Also
- Audio Channel Fade (Flowgraph Node) - Related reference
- Audio Fade Out (Flowgraph Node) - Related reference
- Play Sound (Flowgraph Node) - Related reference
- FlowGraph Guide - Guide