Table of Contents

Class FModExtensions

Namespace
Nautilus.Extensions
Assembly
Nautilus.dll
Contains extension methods for the FMOD system.
public static class FModExtensions
Inheritance
FModExtensions
Inherited Members

Methods

AddFadeOut(Channel, float, out ulong)

Adds a fade-out point for the specified channel.
public static void AddFadeOut(this Channel channel, float seconds, out ulong dspClock)

Parameters

channel Channel
The channel to add a fade-out to
seconds float
The duration of the fade-out. The fade-out starts at the current time.
dspClock ulong
The DSP clock at the point where the fade was added.
DSP clock consists of 48_000 ticks per second. For more information, please refer to the FMOD docs.

Remarks

This method only applies the fade-out one time. If you want the fade to stay everytime the sound is played, consider using AddFadeOut(Sound, float).

AddFadeOut(Sound, float)

Adds a fade-out point for the specified sound.
public static void AddFadeOut(this Sound sound, float seconds)

Parameters

sound Sound
The sound to add a fade-out to
seconds float
The duration of the fade-out.

Remarks

Fades are only triggered when an emitter respects them. E.G: when calling FMOD_CustomEmitter.Stop(STOP_MODE.ALLOWFADEOUT).