carb::audio::fPlaybackModeFadeIn
Defined in carb/audio/IAudioPlayback.h
-
constexpr PlaybackModeFlags carb::audio::fPlaybackModeFadeIn = 0x00000200
Flag to indicate that the sound should fade in when being initially played.
This should be used when it’s not certain that the sound is starting on a zero-crossing, so playing it without a fade-in will cause a pop. The fade-in takes 10-20ms, so this isn’t suitable for situations where a gradual fade-in is desired; that should be done manually using callbacks. This flag has no effect after the sound has already started playing; actions like unpausing and unmuting will always fade in to avoid a pop.