nw::snd::SoundHandle::FadeIn Member Function#include <nw/snd/snd_SoundHandle.h>
void FadeIn(
int frames
);
| Name | Description | |
|---|---|---|
| in | frames | Number of elapsed frames during a fade-in. The number of frames is based on the number of calls to SoundArchivePlayer::Update. |
Fades in the sound when playback starts.
If the handle is invalid, the function does nothing.
If fade-ins are specified with this function, they are configured to occur when SoundArchivePlayer::Update is called for the first time after SoundArchivePlayer::StartSound or SoundHandle::StartPrepared is used to start playback.
This function has no effect if it is called after sound playback has started and SoundArchivePlayer::Update has been called for the first time.
The volume control used for fade-in is also used for fade-out when playback stops.
CONFIDENTIAL