nw::snd::StreamSoundHandle::FadeIn Member Function#include <nw/snd/snd_StreamSoundHandle.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 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 StartPrepared is used to start playback.
This function has no effect if it was called after playback of the sound started and the first call to SoundArchivePlayer::Update.
The volume control used for fade-in is also used for fade-out when playback stops.
CONFIDENTIAL